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

Avoid exit listener to hijack other application shortcuts #177

Merged
merged 3 commits into from
Apr 1, 2021

Conversation

germain-gg
Copy link
Contributor

Fixes element-hq/element-web#16828

My understanding of globalShortcut was incorrect. It actually seems like something that we would very rarely use

The new listener is based on before-input-event which appears way more appropriate for this use case as it will listen to key presses only when the window is focused

@germain-gg germain-gg requested a review from a team March 31, 2021 08:02
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise lgtm, but linter needs appeasing

src/electron-main.js Outdated Show resolved Hide resolved
@germain-gg germain-gg requested a review from dbkr March 31, 2021 16:18
@germain-gg germain-gg merged commit d4bf14b into develop Apr 1, 2021
@germain-gg germain-gg deleted the gsouquet-exit-shortcut branch April 1, 2021 14:25
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.

Element hijacks cmd-Q
2 participants