Urgent F10 key_press possible bug
"drhammerit" <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
i think i have find a bug in the gdk_event_translate(...)
under Win32. The problem is that i can't catch F10 in the my
key_press_event callback func. The F10 in win32 is a
WM_SYSKEYUP/WM_SYSKEYDOWN message and i have noted in
gdk_event_translate(..) the seguent code:
case WM_SYSKEYUP:
case WM_SYSKEYDOWN:
......
/* If posted without us having keyboard focus, ignore */
if (!(msg->lParam & 0x20000000))
break;
.....
In the win32 documentation the bit 29 of lParam:
Specifies the context code. The value is 1 if the ALT key is down
while the key is pressed; it is 0 if the WM_SYSKEYDOWN message is
posted to the active window because no window has the keyboard focus.
But i have noticed that if my window has keyboard focus when i press
F10 without ALT the bit 29 is alwais 0; it become 1 only if i press
ALT+F10. In my opinion the solution is to remove the "if".
If i think good can someone make the correction (i don't known what
to do) ? If i am in error what is the real solutions ?
Thanks
dr hammer