Wine ignores mapping of CapsLock to Ctrl in GnomeTweakTool

Questions about Wine on Linux
Locked
cheflo
Newbie
Newbie
Posts: 1
Joined: Mon Jun 27, 2016 10:47 am

Wine ignores mapping of CapsLock to Ctrl in GnomeTweakTool

Post by cheflo »

I have remapped CapsLock to act as an additional Ctrl key with the Gnome Tweak Tool. However, when I try to use CapsLock in programs that I run via wine (notepad & pdf-xchange), it just prints the letter that I am pressing in addition to the Ctrl key (i.e Ctrl-s print "s" instead of saving the document). When CapsLock is not mapped to control, it works as normal in wine, toggling the case of all characters.

I tried remapping Alt to Ctrl using the Gnome tweak tool and this worked fine in wine notepad. I also tried remapping CapsLock to Esc and Backspace, and both those mappings worked as well, so the issue seems to be specifically with remapping CapsLock to Ctrl in wine (or potentially to any modifier key, there was no option for me to remap CapsLock to Alt in the Gnome Tweak tool, so I did not test that).

Is there any workaround to get CapsLock to work as Ctrl in wine programs?

I am using wine 1.9.12 on Antergos Linux (and Arch derivative) with kernel 4.6.2.1.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Wine ignores mapping of CapsLock to Ctrl in GnomeTweakTo

Post by Bob Wya »

@cheflo,

Why not have a crack with using Arch Wiki: Xbindkeys ... Wine does tend to use standard libraries and may be simply bypassing any Gnome key overrides - you've specified.

Bob
Locked