Remove electron-LocalShortcut completely

This commit removes the usage of "electron-localshortcut" completely.
Now, we rely on only menu accelerators for shortcuts. It's risky to register a local shortcuts in the app window
either using electronLocalShortcut or globalShortcut as the registered shortcuts could interfare with
OS global shortcuts which is very frustrating. This fixes #317 once and for all.
This commit is contained in:
akashnimare
2017-11-15 03:39:51 +05:30
parent 77094596a5
commit bcb8ffb55f
3 changed files with 2 additions and 44 deletions

View File

@@ -83,7 +83,6 @@ class ServerManagerView {
} else {
this.openSettings('Servers');
}
ipcRenderer.send('local-shortcuts', true);
}
initServer(server, index) {
@@ -257,9 +256,6 @@ class ServerManagerView {
// Clear DOM elements
this.$tabsContainer.innerHTML = '';
this.$webviewsContainer.innerHTML = '';
// Destroy shortcuts
ipcRenderer.send('local-shortcuts', false);
}
reloadView() {