Hi there,
First of all, really cool plugin. In my opinion the best keyboard out there (small and customize-able)
Now, I just started using it so I may be wrong but I had some issues with enter/return key in form.js. At first I added both enter and return check in the release event. Second, my app is JS only so I do not have a html form to submit, therefore I trigger a keydown event on the input which is later caught and handled by my scripts. Finally, I use a new jQuery version which does not support live, it has to be on. Changes below:
...
} else if(o.key.name === 'enter' || o.key.name === 'return') {
var form = input.parents('form');
if(form && form.length > 0) { // Urban: remove ()
form.submit();
}
// Urb@n:
else{
input.trigger($.Event( "keydown", { which: 13 } ));
}
// Delete backward
...
// Show
$('body').on('focus', 'input[type!="submit"], textarea', function(e) {
...
I post just in case it helps someone else or you want to add these changes in the repo.
Andreas
Hi there,
First of all, really cool plugin. In my opinion the best keyboard out there (small and customize-able)
Now, I just started using it so I may be wrong but I had some issues with enter/return key in
form.js. At first I added both enter and return check in thereleaseevent. Second, my app is JS only so I do not have a html form to submit, therefore I trigger akeydownevent on theinputwhich is later caught and handled by my scripts. Finally, I use a new jQuery version which does not supportlive, it has to beon. Changes below:I post just in case it helps someone else or you want to add these changes in the repo.
Andreas