From fe40d40be00dec8dbd8bcb1ccd0c8ba1f947ccc7 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 18 Feb 2011 08:55:12 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js | 1 + 1 file changed, 1 insertion(+) 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')); -- 2.11.0