platform/electron/shortcuts
Type Aliases
Section titled “Type Aliases”WindowCommand
Section titled “WindowCommand”WindowCommand =
"tab.new"|"window.new"|"window.newPrivate"|"tab.close"|"tab.reopen"|"tab.next"|"tab.previous"|"page.reload"|"page.back"|"page.forward"|"omnibox.focus"|"settings.open"|"history.open"|"downloads.open"|"bookmark.toggle"|"bookmarks.open"|"bookmarks.toggleBar"|"find.open"|"find.next"|"find.previous"|"zoom.in"|"zoom.out"|"zoom.reset"|"window.fullscreen"|"page.reloadHard"|"page.print"|"page.save"|"page.source"|"devtools.toggle"
Defined in: app/src/platform/electron/shortcuts.ts:4
Keyboard shortcuts the window handles itself, also while web content has focus.
Functions
Section titled “Functions”commandForInput()
Section titled “commandForInput()”commandForInput(
input,platform):WindowCommand|undefined
Defined in: app/src/platform/electron/shortcuts.ts:140
Maps a key press to a window command. The default bindings follow the conventions of each system; customizable shortcuts replace these tables in a later module.
Parameters
Section titled “Parameters”Input
The key event.
platform
Section titled “platform”string
process.platform.
Returns
Section titled “Returns”WindowCommand | undefined