Add plugin actions menu

Summary: See D32311662 for details

Reviewed By: mweststrate

Differential Revision: D32329804

fbshipit-source-id: 26670353fdf8580643afcb8bc3493384146f5574
This commit is contained in:
Andrey Goncharov
2021-11-12 07:12:18 -08:00
committed by Facebook GitHub Bot
parent 2591d1629e
commit ed5c2bd39f
14 changed files with 180 additions and 113 deletions

View File

@@ -71,6 +71,7 @@ export function initializeElectron() {
},
registerShortcut(shortcut, callback) {
remote.globalShortcut.register(shortcut, callback);
return () => remote.globalShortcut.unregister(shortcut);
},
hasFocus() {
return remote.getCurrentWindow().isFocused();