From: Bill Erickson Date: Wed, 6 Jun 2018 18:58:44 +0000 (-0400) Subject: LP#1775466 Support function key shortcuts; add f5 sample X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ee3b22a5de578f294fe45db31c9b6c9d5a38663d;p=working%2FEvergreen.git LP#1775466 Support function key shortcuts; add f5 sample Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey.service.ts b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey.service.ts index 323bdea1a3..51dda57940 100644 --- a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey.service.ts +++ b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey.service.ts @@ -29,7 +29,7 @@ export class AccessKeyService { let s = ''; if (evt.ctrlKey || evt.metaKey) { s += 'ctrl+'; } if (evt.altKey) { s += 'alt+'; } - s += String.fromCharCode(evt.keyCode).toLowerCase(); + s += evt.key.toLowerCase(); return s; } diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index e60b8eb9b0..93ca5cec60 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -101,7 +101,10 @@ library_books Replace Barcode - + question_answer Item Status