Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Select still not working correctly in IE9 #147

Closed
shelfos opened this Issue · 2 comments

2 participants

@shelfos

In IE9 I'm still having trouble getting the keyboard's preview to select the text when clicking on an input field to open the keyboard. I have set up the visible callback so that the preview's input text is selected as per your instructions in issue #25 (I opened issues #75 and #122 but didn't follow up after that due to time constraints at the time - I apologize for that and appreciate you looking into it).

visible : function(e, keyboard, el) {
   keyboard.$preview[0].select();
}

In Chrome it seems to work ok, but in IE9 the text either doesn't get selected at all or it initially does but then gets un-selected again as soon as you hover over and off of the keyboard buttons (change usePreview to false and true to see the differences). If I "tab" into the input field it works so it seems to be isolated to clicking on the input to open the keyboard.

Here is your Select Text demo from the Home Page.

@Mottie
Owner

Hmm, that darn IE... well try adding a setTimeout for now (demo) and I'll see if I can figure out why IE is still being stubborn.

$('#keyboard').keyboard({
    visible: function (e, keyboard, el) {
        setTimeout(function () {
            keyboard.preview.select();
        }, 10);
    }
});
@Mottie Mottie closed this in ac22c9a
@Mottie
Owner

Sorry for taking so long... this also needed the fix from issue #160.

Here is an updated demo

This was referenced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.