https://bugs.winehq.org/show_bug.cgi?id=53624
Bug ID: 53624 Summary: Mode_switch layer with xmodmap isn't recognized Product: Wine Version: 7.8 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: cairn@pm.me Distribution: ---
Created attachment 73023 --> https://bugs.winehq.org/attachment.cgi?id=73023 xmodmap example
With xmodmap, I am binding "Mode_switch" to CapsLock in order to simulate a different layer of keys. I've attached a file (xmodmap.txt) which is all you need to reproduce this. Download the file and run `xmodmap xmodmap.txt` to enable the example key map.
The easiest way I've found to test this is to use `wine notepad`. In the example keymap, Caps + H is bound to the left arrow key. Type something, then press Caps + H. The expected behavior is to move the cursor to the left, but this doesn't work. This issue happens with seemingly any application run through Wine.
You can confirm with `xev` that the xmodmap configuration does indeed work. I've attempted to use both keycodes and keysyms in the xmodmap configuration; both result in the same issue. The problem doesn't occur when directly rebinding a key without using "Mode_switch", but that isn't really a workaround, so it still seems worth it to report the issue.
Tested on Ubuntu 22.04 running Wine 6.0.3 and GNU Guix running Wine 7.8.
The version of xmodmap is 1.0.10.
I've reviewed bug #20610 and I think it's worth recognizing this as a separate issue. Maybe the solutions are related.