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

Fix keyboard shortcuts on Linux and Windows #1058

Merged
merged 10 commits into from
Nov 30, 2016
Merged

Conversation

matheuss
Copy link
Member

This PR introduces a temporary fix for the issue with keyboard shortcuts (accelerators) on Windows and Linux.

The fix consists of a check on every keyDown event: if such event is a Hyper accelerator (Ctrl+tab, for example), we prevent hterm from consuming it. With that, our code (or Electron's code, depending on the accelerator) can consume it.

This is a temporary fix because in the near future we'll probably have a way to customize the accelerators via .hyper.js.

Closes #274; Closes #1025;

@matheuss matheuss added 🐧 Platform: Linux Issue pertains to Linux 🖼 Platform: Windows Issue pertains to Windows ‼️ Priority: OMG Maximum Issue needs to be seen to immediately. Like now. Please. ⚠️ 🎨 Type: Enhancement Issue or PR is an enhancement request/proposal for Hyper labels Nov 30, 2016
@matheuss matheuss added this to the v1.0.0 milestone Nov 30, 2016
@rauchg rauchg merged commit be286c0 into master Nov 30, 2016
@rauchg rauchg deleted the fix/keyboard-shortcuts branch November 30, 2016 20:19
@rumpelsepp
Copy link

Works!

matheuss added a commit that referenced this pull request Dec 2, 2016
Such regression broke the character composition/paste on macOS
@roccomuso
Copy link

When will it be in a release? It's a key feature. >.>

@leo
Copy link
Contributor

leo commented Dec 3, 2016

@roccomuso Comes with the next release

@jekku
Copy link

jekku commented Dec 15, 2016

still not working with archlinux-kde

@rickmed
Copy link

rickmed commented Dec 24, 2016

was this added to 1.0? is not working in my xubuntu 16.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐧 Platform: Linux Issue pertains to Linux 🖼 Platform: Windows Issue pertains to Windows ‼️ Priority: OMG Maximum Issue needs to be seen to immediately. Like now. Please. ⚠️ 🎨 Type: Enhancement Issue or PR is an enhancement request/proposal for Hyper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants