Skip to content

Commit

Permalink
Core: fix linting from #497
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Nov 25, 2016
1 parent f8b2e85 commit a320cac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/jquery.keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,12 @@ http://www.opensource.org/licenses/mit-license.php

})
.bind('keypress' + base.namespace, function (e) {
if (o.lockInput) return false;
if (!base.isCurrent()) return;
if (o.lockInput) {
return false;
}
if (!base.isCurrent()) {
return;
}

var k = e.charCode || e.which,
// capsLock can only be checked while typing a-z
Expand Down Expand Up @@ -1538,7 +1542,7 @@ http://www.opensource.org/licenses/mit-license.php
}
// save caret after updating value (fixes userClosed issue with changing focus)
$keyboard.caret(base.$preview, base.last);

base.$el
.trigger(((accepted || false) ? kbevents.inputAccepted : kbevents.inputCanceled), [base, base.el])
.trigger((o.alwaysOpen) ? kbevents.kbInactive : kbevents.kbHidden, [base, base.el])
Expand Down

0 comments on commit a320cac

Please sign in to comment.