Hotkey for keyboard shortcut help

This commit is contained in:
Gregory Schier
2024-01-10 22:05:16 -08:00
parent 8dcf9a8921
commit 9f75497f15
4 changed files with 20 additions and 14 deletions

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)[];