microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.26k stars 310 forks source link

Alt key gets stuck #899

Open dmoncayo opened 2 years ago

dmoncayo commented 2 years ago

Windows build number:

[Version 10.0.22000.1219]

Your Distribution version:

22.10

Your WSL versions:

Output of "wsl -l -v" (without quotes):

NAME STATE VERSION

Steps to reproduce:

Install emacs with GUI support. Launch Emacs by running "emacs &" from a terminal. Then, switch between the emacs window and other windows, typing "Alt+Tab" chord.

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

Emacs works fine when its window gets the focus.

Actual behavior:

Emacs behaves as if the Alt key was pressed. To restore normal behavior, I have to press the Alt key one time.

dmoncayo commented 2 years ago

After playing around a bit with emacs GUI on top of WSL, I conclude that it's not yet a viable option. A pity.

hideyukn88 commented 1 year ago

@dmoncayo, thanks for trying out WSLg and sharing your experience. Would you please share your WSL version by running wsl --version on Windows's command prompt? In case if that doesn't work, you are probably on older version of WSL, please update from aka.ms/wslstorepage, and very appreciate if you try again, thanks!

dmoncayo commented 1 year ago

"wsl --version" from a windows command prompt produces "Invalid command line option: --version".

As for the update from the MS-Store, I've tried it, but failed to install on this PC, because my account on this PC doesn't have administrative rights, and the installation from MS-Store requires it at certain point during the installation.

Anyway, I'll try to find a way to update and report back.

Thanks.

i2 commented 1 year ago

This is still an issue with the latest Windows 11 Insider with latest kernel in WSL2.

Edit: A work-around for Vivaldi run under WSL is disabling Settings > Keyboard > Keyboard Shortcuts > Alt Key for Main Menu