| Summary: | Assigning Window shortcut key cannot include "meta" key (the "Windows" key) or it will be modified to some weird key and fail | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Luke Lee <luke.yx.lee> |
| Component: | input | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | aspotashev, bugs.kde.org, dev, luke.yx.lee, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.4 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=502639 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Luke Lee
2022-10-30 14:41:35 UTC
Another observation and workaround is that, when the key input dialog appears, the first "Meta" (Windows key) key-down event will be immediate converted into " ៀ?, ...", at this moment keep the "Meta" key pressed and use mouse to click the "clear" button (the button with a cross "X" on it), then this " ៀ?, ..." will be erased then, keep holding the meta key, continuing the remaining key, say, "Z" for "Meta+Z". Now this trick will also work without having to load the workaround xmodmap keys I mentioned in the previous comment. Is this still an issue in Plasma 6? Same here in Plasma 6: Operating System: Fedora Linux 41 KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.13.0 Qt Version: 6.8.2 Kernel Version: 6.13.11-200.fc41.x86_64 (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz Memory: 15.4 ГиБ of RAM Graphics Processor 1: Intel® HD Graphics 530 Graphics Processor 2: NVIDIA GeForce GTX 960M UPD: although the main symptom of converting Meta to a weird sequence is the same, the other symptoms are different here. My case is closer to this description: https://unix.stackexchange.com/questions/717243/kde-meta-key-not-working Pressing the left "Windows" key here (which I expect to act like Meta) is reported as "Multi_key" in xev: KeyPress event, serial 40, synthetic NO, window 0x4a00001, root 0x686, subw 0x0, time 174387726, (90,53), root:(2312,1199), state 0x0, keycode 133 (keysym 0xff20, Multi_key), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: True KeyRelease event, serial 40, synthetic NO, window 0x4a00001, root 0x686, subw 0x0, time 174387853, (90,53), root:(2312,1199), state 0x0, keycode 133 (keysym 0xff20, Multi_key), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False I have figured it out: I have the Left Windows key set up as Compose key. Unfortunately, I don't have enough keys on the keyboard (Dell KB216t), so will probably have to stop using the Meta key :( I can reproduce the issue with left Meta/Win as Compose key on Plasma 6.3.4 (Wayland), although I get multiple square characters instead of just one. Note that it is not specific to left Meta: I get the same issue if using Menu as a Compose key. Note that the shortcut itself works, it’s just the display. While it makes sense that a combo is not possible (Compose if not a modifier), I suspect that there is an issue with the conversion of the keysym Multi_key to UTF-8. If the conversion is done using the libxkbcommon API somewhere in the stack (e.g. xkb_keysym_to_utf8), then in the case of Multi_key nothing is written in the string buffer, so if it was not 0-ed then it would explain why we see garbage. |