mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 20:43:33 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user