mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Shortcuts help page can be scrolled using a keyboard
Summary: Restoring keyboard navigation on the shortcuts popup. Test Plan: manual tests Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3295
This commit is contained in:
parent
10097c5423
commit
70373550cf
@ -118,6 +118,13 @@ export class App extends DisposableWithEvents {
|
||||
|
||||
this.autoDispose(commands.createGroup({
|
||||
cancel() { isHelpPaneVisible(false); },
|
||||
cursorDown() { helpDiv.scrollBy(0, 30); }, // 30 is height of the row in the help screen
|
||||
cursorUp() { helpDiv.scrollBy(0, -30); },
|
||||
pageUp() { helpDiv.scrollBy(0, -helpDiv.clientHeight); },
|
||||
pageDown() { helpDiv.scrollBy(0, helpDiv.clientHeight); },
|
||||
moveToFirstField() { helpDiv.scrollTo(0, 0); }, // home
|
||||
moveToLastField() { helpDiv.scrollTo(0, helpDiv.scrollHeight); }, // end
|
||||
find() { return true; }, // restore browser search
|
||||
help() { isHelpPaneVisible(false); },
|
||||
}, this, isHelpPaneVisible));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user