-
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
Revisit issue #75 #122
Comments
Hi shelfos! Hmm, yeah, I can't reproduce the issue you're having in IE9 because well, the caret stays in the original input until I mouse over the keyboard.... and it's not selecting anything. Ugh, switching inputs is causing problems again as well... at least for me. I'll have to take a look at this when I get some time. Sorry for the inconvenience! |
Thanks for looking into it. If I change the value of base.checkCaret to always be false it seems to "fix" my issue. I assume then it has something to do with calling base.$preview.caret(), but I haven't delved into it enough. There will probably be unintended consequences to leaving this value false so I don't consider it a fix. As soon as I have a few minutes to mock up what I have on jsfiddle I'll post again. Thanks. |
To be more precise: // using "kb" namespace for mouse repeat functionality to keep it separate
// I need to trigger a "repeater.keyboard" to make it work
.bind('mouseup.keyboard mouseleave.kb touchend.kb touchmove.kb touchcancel.kb', function(){
if (base.isVisible && base.isCurrent) { base.$preview.focus(); }
base.mouseRepeat = [false,''];
clearTimeout(base.repeater); // make sure key repeat stops!
if (base.checkCaret) { /*base.$preview.caret( base.lastCaret.start, base.lastCaret.end ); */}
return false;
}) |
Hi @shelfos! Wow, sorry I haven't responded in so long. It's been a busy holiday season... and I forgot about this issue =(. Commenting out that line would prevent the caret from being in the correct position in IE and I think some older versions of Opera. So if you're not worried about that, commenting out that line wouldn't hurt anything. If you are worried about IE, maybe change that code to use Also, in the latest version of the plugin, I've added a line to the above code to remove the key hover class because of touch devices. $(this).removeClass(o.css.buttonHover); // needed for touch devices |
Hopefully this issue has also been resolved along with issue #147. So, I'm going to go ahead and close it. Thanks and sorry for taking so long! |
Regarding issue #75:
I too thought the problem was fixed because it does work okay in Chrome, but in IE9 it continues to persist. In other words, when the preview window pops up due to a click (openOn is set to 'click') or focus, the preview window shows (having usePreview set to 'true'), and any text that was previously entered is selected. But when I hover over a keyboard button and move the mouse away from that button the text ceases to be selected. Or if I hover over the button and click on it the same thing happens and the new key pressed gets inserted at the front of the text instead of replacing it. The desired outcome is that the text stays selected so that if the user starts to type or click on the keys the entry is immediately replaced. It's confusing to see the text selected because you assume the text will be replaced with any new keystrokes.
I hope this makes sense. The old example in issue 75 needs to be updated with the latest files so I wouldn't depend on it. I also know you are very busy and I will try to see if I can muddle through to find a solution, but I know you'd be much, much faster at it. Despite some of the issues the Mottie keyboard is amazing! Keep up the great work.
Thanks!
The text was updated successfully, but these errors were encountered: