Hi,
Andreas Mohr wrote:
On Sat, Feb 19, 2005 at 10:02:13AM +0100, Tobias Burnus wrote:
The application Diamond 2 has the following menu shortcuts Ctrl-N -> New file Ctrl-Shift-N -> Connect atoms unfortunally, I always get a new file, even if I press Shift.
Try something like WINEDEBUG=+keyboard,+event,+x11drv,+msg,+message
I'd say it should be quite easy to find...
Well, I did that WINEDEBUG, run the program, pressed Shift+Ctrl, hit N, released Shift+Ctrl. The log output is posted below, but I probably lack the X11 keyboard knowledge to see what goes wrong.
Any help appreciated.
Tobias
* * *
xev of ctrl+Shift+N:
KeyPress event, serial 30, synthetic NO, window 0x3000001, root 0x48, subw 0x0, time 1549500, (339,1005), root:(341,1029), state 0x5, keycode 57 (keysym 0x4e, N), same_screen YES, XLookupString gives 1 bytes: (0e) "" XmbLookupString gives 1 bytes: (0e) "" XFilterEvent returns: False
KeyRelease event, serial 30, synthetic NO, window 0x3000001, root 0x48, subw 0x0, time 1549673, (339,1005), root:(341,1029), state 0x5, keycode 57 (keysym 0x4e, N), same_screen YES, XLookupString gives 1 bytes: (0e) ""
* * *
trace:msg:GetMessageW (110f) mask=0000007f, bits=00000000, changed=00000000, waiting trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x10028/3200004, GetFocus()=0x1002a trace:event:EVENT_ProcessEvent returns. trace:msg:MSG_peek_message got type 7 msg 100 (WM_KEYDOWN) hwnd 0x1002a wp 11 lp 1d0001 trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE sent from self wp=00000000 lp=00000000 trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE returned 00000000 trace:msg:GetKeyState key (0x11) -> ffffff81 trace:msg:GetKeyState key (0x12) -> 0 trace:msg:GetKeyboardState (0x406dfd28) trace:keyboard:X11DRV_ToUnicodeEx ControlMask = 0004 trace:keyboard:X11DRV_ToUnicodeEx AltGrMask = 0000 trace:keyboard:X11DRV_ToUnicodeEx Found keycode 37 (0x25) trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x0000ffe3 trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0100] WM_KEYDOWN dispatched wp=00000011 lp=001d0001 trace:message:SPY_EnterMessage (0x1002a) DefWindowProc32: WM_KEYDOWN [0100] wp=00000011 lp=001d0001 trace:message:SPY_ExitMessage (0x1002a) DefWindowProc32: WM_KEYDOWN [0100] returned 00000000 trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0100] WM_KEYDOWN returned 00000000 trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE sent from self wp=00000000 lp=00000000 [...] trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE returned 00000000 trace:msg:GetMessageW (110f) mask=0000007f, bits=00000000, changed=00000000, waiting trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x10028/3200004, GetFocus()=0x1002a trace:event:EVENT_ProcessEvent returns. trace:msg:MSG_peek_message got type 7 msg 100 (WM_KEYDOWN) hwnd 0x1002a wp 10 lp 2a0001 trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE sent from self wp=00000000 lp=00000000 trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE returned 00000000 trace:msg:GetKeyState key (0x11) -> ffffff81 trace:msg:GetKeyState key (0x12) -> 0 trace:msg:GetKeyboardState (0x406dfd28) trace:keyboard:X11DRV_ToUnicodeEx ShiftMask = 0001 trace:keyboard:X11DRV_ToUnicodeEx ControlMask = 0004 trace:keyboard:X11DRV_ToUnicodeEx AltGrMask = 0000 trace:keyboard:X11DRV_ToUnicodeEx Found keycode 50 (0x32) trace:keyboard:KEYBOARD_MapDeadKeysym no character for dead keysym 0x0000ffe1 trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0100] WM_KEYDOWN dispatched wp=00000010 lp=002a0001 trace:message:SPY_EnterMessage (0x1002a) DefWindowProc32: WM_KEYDOWN [0100] wp=00000010 lp=002a0001 trace:message:SPY_ExitMessage (0x1002a) DefWindowProc32: WM_KEYDOWN [0100] returned 00000000 trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0100] WM_KEYDOWN returned 00000000 trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE sent from self wp=00000000 lp=00000000 [...] trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE returned 00000000 trace:msg:GetMessageW (110f) mask=0000007f, bits=00000000, changed=00000000, waiting trace:event:EVENT_ProcessEvent called. trace:event:EVENT_ProcessEvent Got event KeyPress for hwnd/window 0x10028/3200004, GetFocus()=0x1002a trace:event:EVENT_ProcessEvent returns. trace:msg:MSG_peek_message got type 7 msg 100 (WM_KEYDOWN) hwnd 0x1002a wp 4e lp 310001 trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE sent from self wp=00000000 lp=00000000 trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE returned 00000000 trace:msg:GetKeyState key (0x11) -> ffffff81 trace:msg:GetKeyState key (0x12) -> 0 trace:message:SPY_EnterMessage (0x10028) L"Diamond" message [0116] WM_INITMENU sent from self wp=000008c0 lp=00000000 trace:msg:WINPROC_CallProc32WTo32A func 0x5631b9 (hwnd=0x10028,msg=WM_INITMENU,wp=000008c0,lp=00000000) trace:message:SPY_EnterMessage (0x10028) DefWindowProc32: WM_INITMENU [0116] wp=000008c0 lp=00000000 trace:message:SPY_ExitMessage (0x10028) DefWindowProc32: WM_INITMENU [0116] returned 00000000 trace:message:SPY_ExitMessage (0x10028) L"Diamond" message [0116] WM_INITMENU returned 00000000 trace:message:SPY_EnterMessage (0x10028) L"Diamond" message [0117] WM_INITMENUPOPUP sent from self wp=000008fc lp=00000000 trace:msg:WINPROC_CallProc32WTo32A func 0x5631b9 (hwnd=0x10028,msg=WM_INITMENUPOPUP,wp=000008fc,lp=00000000) trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE sent from self wp=00000000 lp=00000000 trace:message:SPY_ExitMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE returned 00000000 trace:message:SPY_ExitMessage (0x10028) L"Diamond" message [0117] WM_INITMENUPOPUP returned 00000000 trace:message:SPY_EnterMessage (0x10028) L"Diamond" message [0111] WM_COMMAND sent from self wp=0001e100 lp=00000000 trace:msg:WINPROC_CallProc32WTo32A func 0x5631b9 (hwnd=0x10028,msg=WM_COMMAND,wp=0001e100,lp=00000000) trace:message:SPY_EnterMessage (0x1002a) L"{MDIClient}" message [0229] WM_MDIGETACTIVE sent from self wp=00000000 lp=00000000 [...]