Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove electron-localshortcut completely #335

Merged
merged 3 commits into from
Nov 15, 2017
Merged

Conversation

akashnimare
Copy link
Member

This PR removes the use of local shortcuts which is being done by electron-localshortcut. Now the app depends on menu accelerators to register keyboard shortcuts which is the safe method. The reason we have removed electron-localshortcut is that sometimes it hijacks the OS shortcut which is very annoying. More info about this issue can be found here - electron/electron#1334

electron-debug hijacks the CMD/CTRL+R and reloads the whole app,
whereas we only need to reload the current server. Removed those commands from
electronLocalShortcuts as well as they are already registered in menu items.
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.
@akashnimare akashnimare merged commit 2fb9efb into master Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants