Hotkey for keyboard shortcut help

This commit is contained in:
Gregory Schier committed 2024-01-10 22:05:16 -08:00
1 parent a03c5df440
commit dbaf1da3ce
4 files changed
+20 -14

No files matched your search

+3 -1
View File
@@ -10,7 +10,8 @@ export type HotkeyAction =
| 'sidebar.toggle'
| 'sidebar.focus'
| 'urlBar.focus'
| 'environmentEditor.toggle';
| 'environmentEditor.toggle'
| 'hotkeys.showHelp';
const hotkeys: Record<HotkeyAction, string[]> = {
'request.send': ['CmdCtrl+Enter', 'CmdCtrl+r'],
@@ -20,6 +21,7 @@ const hotkeys: Record<HotkeyAction, string[]> = {
'sidebar.focus': ['CmdCtrl+1'],
'urlBar.focus': ['CmdCtrl+l'],
'environmentEditor.toggle': ['CmdCtrl+e'],
'hotkeys.showHelp': ['CmdCtrl+/'],
};
export const hotkeyActions: HotkeyAction[] = Object.keys(hotkeys) as (keyof typeof hotkeys)[];