mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add keyboard navigation options for the main browser windows. Fixes #2895
This commit is contained in:
committed by
Dave Page
parent
2042f89ce0
commit
262d01bf01
@@ -8,7 +8,8 @@ const EDIT_KEY = 71, // Key: G -> Grid values
|
||||
F7_KEY = 118,
|
||||
F8_KEY = 119,
|
||||
PERIOD_KEY = 190,
|
||||
FWD_SLASH_KEY = 191;
|
||||
FWD_SLASH_KEY = 191,
|
||||
ESC_KEY = 27;
|
||||
|
||||
function isMac() {
|
||||
return window.navigator.platform.search('Mac') != -1;
|
||||
@@ -158,6 +159,8 @@ function keyboardShortcutsQueryTool(sqlEditorController, queryToolActions, event
|
||||
panel_id = this.getInnerPanel(
|
||||
sqlEditorController.container, 'right'
|
||||
);
|
||||
} else if (keyCode == ESC_KEY) {
|
||||
queryToolActions.focusOut(sqlEditorController);
|
||||
}
|
||||
return panel_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user