feat: implement 'app-command' events for browser history navigation keys on Linux (#15441)

* Added mouse forward/back button support on Linux

* Added browser history navigation action bindings for Windows, Mac, and Linux keyboard

* Removed new `history-action` event and modified `app-command` to execute on such events

* Removed attempt at macOS support and added constants

* Clarified app-command documentation

* Reverted 'app-command' description change

* Format code
This commit is contained in:
Saswat Bhattacharya 2018-12-05 09:35:59 -08:00 committed by Shelley Vohr
parent 3f15f51615
commit d243a45173
11 changed files with 64 additions and 12 deletions

View file

@ -554,7 +554,7 @@ Returns:
Emitted when the window is set or unset to show always on top of other windows.
#### Event: 'app-command' _Windows_
#### Event: 'app-command' _Windows_ _Linux_
Returns:
@ -580,6 +580,11 @@ win.on('app-command', (e, cmd) => {
})
```
The following app commands are explictly supported on Linux:
* `browser-backward`
* `browser-forward`
#### Event: 'scroll-touch-begin' _macOS_
Emitted when scroll wheel event phase has begun.