Skip to content

Commit

Permalink
fixes switching keyboards in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jun 18, 2012
1 parent b3db334 commit 04f2a86
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ Moved to the Wiki Pages: [Home](https://github.com/Mottie/Keyboard/wiki/Home) |

Only the latest changes will be shown below, see the wiki log to view older versions.

### Version 1.9.21 (6/18/2012)

* IE should now behave like other browsers when switching inputs; clicking on another input with a keyboard open will now switch immediately instead of requiring a second click.

### Version 1.9.20 (6/17/2012)

* Added Latvian layout. Thanks to Ivars via email.
Expand Down
4 changes: 3 additions & 1 deletion js/jquery.keyboard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
jQuery UI Virtual Keyboard
Version 1.9.20
Version 1.9.21
Author: Jeremy Satterfield
Modified: Rob Garrison (Mottie on github)
Expand Down Expand Up @@ -147,6 +147,8 @@ $.keyboard = function(el, options){
if (o.alwaysOpen) { o.stayOpen = true; }
$(document).bind('mousedown.keyboard keyup.keyboard', function(e){
base.escClose(e);
// needed for IE to allow switching between keyboards smoothly
if (base.allie && $(e.target).hasClass('ui-keyboard-input')) { $(e.target).focus(); }
});

// Display keyboard on focus
Expand Down
Loading

0 comments on commit 04f2a86

Please sign in to comment.