http://bugs.winehq.org/show_bug.cgi?id=17155
Summary: Bound keys do not work. Product: Wine Version: 1.1.13 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: the.critta.c@gmail.com CC: the.critta.c@gmail.com
I have bound some keys with xmodmap and xbindkeys in Linux. They work fine in every other application, but they do not work in Wine.
http://bugs.winehq.org/show_bug.cgi?id=17155
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2009-01-27 14:47:10 --- What exactly did you do?
What keys? Bound to what? How? With what exact commands? To generate what key codes?
http://bugs.winehq.org/show_bug.cgi?id=17155
--- Comment #2 from Christopher Lemay the.critta.c@gmail.com 2009-01-27 22:50:53 --- (In reply to comment #1)
What exactly did you do?
What keys? Bound to what? How? With what exact commands? To generate what key codes?
I used xmodmap and xbindkeys to bind two buttons on the side of my mouse to the numbers 1 and 2. The command is xbindkeys. My .xbindkeysrc is as follows:
keystate_numlock disable
"/usr/bin/xvkbd -xsendevent -text "[KP_2]"" m:0x0 + b:6 "/usr/bin/xvkbd -xsendevent -text "[KP_1]"" m:0x0 + b:7
and my .Xmodmap is as follows:
pointer = 1 2 3 4 5 9 8 6 7
What I believe is happening is that xmodmap is turning the side buttons on my Logitech G5 mouse into "keys," and xbindkeys is binding those "keys" to different things. The buttons on the mouse work in every non-wine application I've tested, including in this window as I type.
http://bugs.winehq.org/show_bug.cgi?id=17155
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-02-01 13:26:23 --- Looks like a bug in xvkbd: [M:6]: trace:event:process_events processed 4 events trace:key:X11DRV_KeyEvent KeyPress : keysym=FFE1 (Shift_L), # of chars=0 / "" trace:key:X11DRV_KeyEvent KeyPress : keysym=FFB1 (KP_1), # of chars=1 / "1" trace:key:X11DRV_KeyEvent KeyRelease : keysym=FFB1 (KP_1), # of chars=1 / "1" trace:key:X11DRV_KeyEvent KeyRelease : keysym=FFE1 (Shift_L), # of chars=0 / ""
[M:7]: trace:event:process_events processed 4 events trace:key:X11DRV_KeyEvent KeyPress : keysym=FFE1 (Shift_L), # of chars=0 / "" trace:key:X11DRV_KeyEvent KeyPress : keysym=FFB2 (KP_2), # of chars=1 / "2" trace:key:X11DRV_KeyEvent KeyRelease : keysym=FFB2 (KP_2), # of chars=1 / "2" trace:key:X11DRV_KeyEvent KeyRelease : keysym=FFE1 (Shift_L), # of chars=0 / ""
So it sends [shift]+[KP_1], [shift]+[KP_2]. And if you test this in notepad - you will see they working as [End] and [down] accordingly.
Invalid - not a Wine bug. Shift + keypad = not numeric keys is intended behavior.
http://bugs.winehq.org/show_bug.cgi?id=17155
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Vitaliy Margolen vitaliy@kievinfo.com 2009-02-01 13:26:31 --- Closing invalid.