Ctrl + Shift + {Left, Right, Home, End} is broken after a terminal is opened & closed
See original GitHub issueOS/Web Information
- Web Browser: Mozilla Firefox 88.0.1 (
88.0.1+build1-0ubuntu0.20.04.2
) - Local OS: Ubuntu 20.04
- Remote OS: Ubuntu 20.04
- Remote Architecture: AMD64
code-server --version
:3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005
Steps to Reproduce
- With a freshly opened window, open a file with some text in it.
- Try using Ctrl + Shift + Right, text should be selected at word boundaries.
- Open a terminal, then close it using
exit
command. - Try using Ctrl + Shift + Right again.
Expected
Text should be selected at word boundaries.
Actual
No text is selected. Cursor doesnāt move at all.
Logs
- code-server-stderr.log
- code-server-stdout.log
- console-export-2021-5-28_23-16-18.txt
- code-server_Archive [21-05-28 23-14-41].zip (contains HAR file)
- The output of āLog (Window)ā, with āToggle Keyboard Shortcuts Troubleshootingā enabled: window.log
Notes
This issue can be reproduced in VS Code: No (Version: 1.57.0-insider, Commit: 1082913dd012e21cc5f35a06f15c480ca447f67f)
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Ctrl + Shift + {Left, Right, Home, End} is broken after a terminal ...
Open a terminal, then close it using exit command. Try using Ctrl + Shift + Right again. Expected. Text should be selected at...
Read more >my left ctrl key stopped working in win shortcuts (but still works
4. Right-click on Key.reg and select Merge; 5. Click Ok> Yes> Yes. 6. Restart the system. If the behavior persists, proceed to the...
Read more >Keyboard shortcuts for Windows - Visual Studio Code
Ctrl +P. Quick Open, Go to File⦠Ctrl+Shift+N. New window/instance ... Ctrl+End. Go to end of file. Ctrl+ā / ā. Scroll line up/down....
Read more >VSCode some shortcuts not working properly - Stack Overflow
I am developing in Java. The most common shortcut, "go to definition" F12 and "auto fix" ctrl+dot I tested it on another computer...
Read more >Make Home & End keys behave like Windows on Mac OS X
Ctrl Home and Ctrl End will go to start and end of document; Shift Ctrl Home and Shift Ctrl End will select to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Iām able to reproduce. Maybe itās because of the
Terminal: Resize Pane Right
keybinding thatās bound toctrl+shift+right
in the terminal.On Firefox when the terminal is closed thereās a bug where the close isnāt actually registered so maybe it still thinks the
terminalFocus
condition is true.One workaround is to unbind it for now:
Possibly related: https://github.com/cdr/code-server/issues/1615
Iāve retested with an empty
--user-data-dir
; the problem still persists. So it canāt be extensions or custom keybindings.But from the window log, this looks suspicious:
The terminal is not opened at that point.
On macOS, I think the fact that thereās some kind of Ctrl -> Cmd keybinding difference might cause the issue to not appear. You may have better luck reproducing it on Windows (if you canāt find a Linux/Ubuntu machine, that is).