Skip to content

platform/electron/shortcuts

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.

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.

Input

The key event.

string

process.platform.

WindowCommand | undefined