-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Ctrl+Arrow Key and Ctrl+Shift Selection no longer work on Windows #2873
Comments
ctrl+shift+arrows should work, a Hyper keybinding might be intercepting it? |
I don't know if this helps, but |
@Xapphire13 yeah, my statement stands; Hyper is intercepting it so it's not being interpreted by the shell. |
Same problem here. Using Hyper 2.0.0 and Windows 10 1709. If i use the key combination "ctrl+left arrow" then a "b" is written and if i use the combination "ctrl+right arrow" a "f" is written. This behavior also occurs when I execute the function via the menu (Edit > Move to > Prevoius/Next Word). Adjusting the keyboard shortcuts didn't help either:
or:
|
For me, using Hyper 2.0.0 (stable), and no plugins, on Windows 10 Professional (x64) Version 1803 (build 17134.228), the key combinations |
Experiencing the same issue on the most recent version for Windows. Ctrl <- outputs (edit) FYI this pull request seems to identify and possibly fix issue. It seems defaultPlatformKeyPath always points to the Darwin/Apple keymaps file by default. |
Played around some more with this and have some more information for someone who might be able to look deeper into the issue. The pull request linked to in my previous comment attempts to "fix" the issue by breaking this function call (putting you into the catch block for the try-catch): You can get the same effect by either:
Additionally in win32.json I tried playing around with a couple other commands and I don't see |
Which shell do you use? |
@chabou For me the work was done in the default Windows shell |
I am also experiencing this when using Hyper with Cmder (following the instructions here) |
So, here's something weird... As we know, there are issues with Windows keymaps. But, when I start a Windows CMD shell in Hyper (with this in the config: Well, it seemed weird to me. Maybe it's totally explainable? |
I've had a quick look and I think this is what's happening: In https://github.com/zeit/hyper/blob/0d82f983eb6b932ffd66563bd6e8153bf03e7398/app/commands.js#L77-L79 The problem is that PowerShell and CMD do not interpret this as "move to previous word" (but Bash does, hence why it works on Mac/Linux but not on Windows). If you use WSL Bash as your shell, this does work correctly and moves the cursor to the previous word. Previous comments mentioned that replacing the windows key bindings JSON with By removing the
to;
makes this work for PowerShell and CMD. I think perhaps what is needed is some extra configuration files similar to the keymaps json that determines which control characters should be sent for each command, depending on the shell being used. E.g. for bash:
for PowerShell/CMD:
However, an easy temporary fix for CMD/PowerShell users is to override the key bindings for the commands that don't work to
This stops Hyper interpreting them as commands and instead sends them directly to the shell. |
thanks @SamuelFisher savior!!!! |
Adding this code:
fixed for me. |
Confirmed above workaround works in Hyper 3 too. note: Remove any default keymaps using Ctrl+arrows too
|
Issue
Using Ctrl + Arrow Keys on windows used to control movement as expected. Now it outputs characters. Combining this with shift should select the text but now does nothing.
The text was updated successfully, but these errors were encountered: