-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging Two Word #769
Comments
Hi @Yateenp88! You can't use the combo's feature because it only examines the last two characters that were typed, this was done to prevent replacements from always occurring. But, good news, you can use the $(function() {
var wordsToChange = 'two words';
var newWord = 'oneNEWword';
$('#keyboard').keyboard({
change: function(event, kb) {
var $el = kb.$preview;
var text = $el.val();
if (text.includes(wordsToChange)) {
var newText = text.replace(wordsToChange, newWord);
$el.val(newText);
// move caret to end of new word
$.keyboard.caret($el, newText.indexOf(newWord) + newWord.length);
}
}
})
// activate the typing extension
.addTyping({
showTyping: true,
delay: 250
}); In that demo:
|
thanks buddy....help me lots |
is combo's limited for ligature character only.. |
No, any two characters can be used. I think I'll add an option to expand this limit. |
i have query regarding joining two word and form different single word.Please help
The text was updated successfully, but these errors were encountered: