From: Bill Erickson Date: Wed, 6 Jun 2018 18:58:44 +0000 (-0400) Subject: LP#1626157 Support function key shortcuts; add f5 sample X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fberick%2Flp1626157-ang6-app;p=working%2FEvergreen.git LP#1626157 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