From: Jason Etheridge Date: Fri, 18 Feb 2011 13:55:12 +0000 (-0500) Subject: escape key handler (for logout) on the item scanbox. Since the scanbox aggresively... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fe40d40be00dec8dbd8bcb1ccd0c8ba1f947ccc7;p=evergreen%2Fequinox.git escape key handler (for logout) on the item scanbox. Since the scanbox aggresively gets keyboard focus, we probably don't need to setup escape key handlers elsewhere --- diff --git a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js index fe492e52c9..de4b58ee65 100644 --- a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js @@ -428,6 +428,7 @@ SelfCheckManager.prototype.updateScanBox = function(args) { selfckScanBox, 'onKeyDown', function(e) { + if(e.keyCode == dojo.keys.ESCAPE) if (window.confirm('Logout now without printing a receipt?')) selfCheckMgr.logoutPatron(); // TODO I18N if(e.keyCode != dojo.keys.ENTER) return; args.handler(selfckScanBox.attr('value'));