Add plugin actions menu
Summary: See D32311662 for details Reviewed By: mweststrate Differential Revision: D32329804 fbshipit-source-id: 26670353fdf8580643afcb8bc3493384146f5574
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2591d1629e
commit
ed5c2bd39f
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user