Skip to content

Commit

Permalink
capLock key now "sticks" properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jan 18, 2016
1 parent 7e85b90 commit 663b86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.keyboard.js
Expand Up @@ -911,7 +911,7 @@ var $keyboard = $.keyboard = function(el, options){
if (typeof action !== 'undefined' && action !== null) {
last.key = $(this).hasClass(kbcss.keyAction) ? action : last.key;
base.insertText( last.key );
if (!base.capsLock && !o.stickyShift && !e.shiftKey) {
if (!base.capsLock || !o.stickyShift && !e.shiftKey) {
base.shiftActive = false;
base.showSet( $key.attr('data-name') );
}
Expand Down

0 comments on commit 663b86d

Please sign in to comment.