The Wayback Machine - https://web.archive.org/web/20210731193525/https://www.electronjs.org/docs/api/structures/keyboard-input-event
Black Lives Matter. Support the Equal Justice Initiative and read our statement here.

Electron Documentation

Want to check our beta docs site? We'd love your feedback.

KeyboardInputEvent Object extends InputEvent

  • type String - The type of the event, can be keyDown, keyUp or char.
  • keyCode String - The character that will be sent as the keyboard event. Should only use the valid key codes in Accelerator.

Keyboard Shortcuts

Key Action
/ Focus the search bar
Esc Focus the search bar and cleans it
Select the next search result
Select the previous search result
Enter Open the selected search result
cmdEnter Ctrl+Enter Open the selected search result in a new tab