]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1803787: Add keyboard support (Shift+F10)
authorJane Sandberg <sandbej@linnbenton.edu>
Fri, 17 May 2019 19:31:56 +0000 (12:31 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Mon, 17 Jun 2019 21:47:05 +0000 (14:47 -0700)
commitb3cb3f7f7b5e239e04754ae3dc2d1f35557cb70e
tree46c4f71d3ad9a9af639b036a710b1315106f467d
parentfc641deb9ebf56314acb0b49d993011e32334e4c
LP1803787: Add keyboard support (Shift+F10)

This allows a user to set focus to a row using a checkbox, then
press the standard keyboard shortcut to open the row context menu.

This commit sets the Shift+F10 keyboard combination to fire the
contextmenu javascript event throughout the Angular staff client, so
other interfaces that need to override the browser's context menu should
be able to respond to Shift+F10.

To test:

1) Open an eg2 grid interface (Server Administration -> Authority
Thesaurus is a good one).
2) Use the tab key to set focus onto the checkbox for one of the rows.
3) Note that pressing Shift + F10 opens the browser's context menu.
4) Apply this commit
5) Repeat steps 1+2
6) Press Shift + F10.
7) Note that the context menu opens, and that you can use Tab and
Shift+Tab to move through the various actions.
8) Note that you can press the Esc key to exit the context menu

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid-body.component.html
Open-ILS/src/eg2/src/app/staff/staff.component.html
Open-ILS/src/eg2/src/app/staff/staff.component.ts