-
Notifications
You must be signed in to change notification settings - Fork 305
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+Alt+[Left/Right Arrow] shortcut #188
Comments
Same issue here. Happens with other programs as well, like Gimp. Pressing ctrl+alt+left and then escape makes weird stuff happen. Wonder if it's because it's normally a way to switch workspace in Ubuntu? Tried disabling it https://askubuntu.com/questions/82007/how-do-i-disable-ctrlaltleft-right Ohh well, I've earlier had to remap the keybinding in intellij / pycharm to shift+alt+left/right instead, as ctrl+alt+left/right was used for some VM/thin client stuff. |
Hi, thank you for reporting the issue, I'm not familiar with that specific application's behaver, but tried using "xev -event keyboard" to see what keystroke events were sent, and the last arrow input is not sent to xev, but it's recognized as release of L-Control and L-Alt key (even I'm pressing those keys). Doing same on Ubuntu desktop (running natively, not on WSLg), the last arrow (Left or Right) input is not delivered to xev, too, but pressing arrow key doesn't generate release of other 2 keys. By default, Ctrl+Alt+Arrow Up/Down seems assigned to work space change shortcut, this might be related, but I'm not sure. If you have a working settings (means the key combination works with applications) with other Linux environment, would you please check what do you see with xev with that key combination ? thanks! [Below is what I see with WSLg] I pressed L-Control I pressed L-Alt (while holding L-Control I pressed Left-Arrow (while holding L-Control and L-Alt) KeyRelease event, serial 28, synthetic NO, window 0x1000001, |
Actually, at least on my environment, the last array key input is not delivered from Windows side, the key sequence Windows sends to WSLg matches what shows in xev. If this is the case, I think you will need to remap the shortcut to something-else. I will continue to check if this is used for some shortcut at Windows side. [12:54:28.503] RDP backend: xf_input_keyboard_event code=1d ext=0 vk_code=a2 scan_code=25 pressed=1, idle_inhibit=1 |
hi @hideyukn88 , thanks for taking a look at this. I pressed L-Ctrl I pressed L-Alt while holding L-Ctrl I pressed L-Arrow while holding L-Ctrl and L-Alt KeyRelease event, serial 28, synthetic NO, window 0x300001, ** I released L-Alt** ** I released L-Ctrl** |
Update: Ctrl+Alt+[Left/Right Arrow] is registered for other shortcut functionality in RDP client software at Windows side, this is why this key sequence is not reported to WSLg. |
Ahh, I should have guessed that. As I commented I have had to remap that key binding earlier when using remote thin clients / rdp as well. It would take one out of the session and back to one's own computer. |
OK, that was my initial though as well. |
Hi, yes, we have already followed up with the responsible team for RDP client software at Windows side, to give us an option to do so, unfortunately, due to the change in Windows, not in WSLg, the solution may not be available until future release of Windows, thanks for feedback! |
I also confirm the problem, it appears in PyCharm(Java-based IDE) running in WSL with WSLG. Strangely though, it does not appear in Geany(GTK3 application) running in WSL with WSLG. Same keys just do what they are supposed to do - select text to the next/previous word boundary. Windows 10 build: 21390.2025 Edit: got Windows 11 with new update, build 22000.51, the issue is still there. |
apparently the RDP client in the microsoft store doesn't have this behaviour...is it possible to configure which RDP client is used? |
Hello, I also have this issue. |
Hello! |
I have the same issue, any updates? |
The same issue(( |
@bluelu, we are working on this, and it is working internally, but this requires updates in RDP client software, thus it would require more coordination internally, thanks for checking! |
@hideyukn88 If you can provide a solid fix for the RDP client always eating Ctrl+Alt+[Left/Right Arrow], that will also help users beyond wlsg! This has been an issue for a long time, see this post for example: |
Are there some upstream trackers to subscribe with? I think that the topic is now gaining in importance: November 22nd, 2022 - The Windows Subsystem for Linux in the Microsoft Store is now generally available on Windows 10 and 11 - Github discussion At least a workaround how to get a clean reconnect to a running application would be great. Regarding Somehow But this wslg feature is really great news! |
Environment
Steps to reproduce
Expected behavior
I would expect the shortcut to be captured by the IDE and navigate back/forward
Actual behavior
It seems that the keyboard shortcust is captured from WSLg, sometimes causing the IDE to crash, or other times to disappear (both the window and the taskbar icon) and re-appear after a few seconds (with changed icon in the taskbar)
The text was updated successfully, but these errors were encountered: