Community
Participate
Working Groups
The keyCode in KeyEvent no longer has a value set, for example when pressing the '.' key. Following the code in Widget.sendIMKeyEvent, the event parameter is 0, the ptr and state variables are set, but the event remains 0, which leads to calling setInputState instead of setKeyState.
Can you provide a snippet which demonstrates the issue? Also which OS/GTK3 version?
Hi Eric, To reproduce, just put a breakpoint on Widget.sendIMKeyEvent(), then press the '.' key on the keyboard. I'm still using GTK 3.10.8 (the best GTK ;) on Ubuntu 14.04.
If it helps, the KeyEvent sent by gtk_key_release_event has the correct keycode and event is not 0. But on the key press, I don't see gtk_key_press_event, instead the KeyEvent comes from Canvas.gtk_commit where the event is hardcoded to 0.
New Gerrit change created: https://git.eclipse.org/r/136688
(In reply to Eclipse Genie from comment #4) > New Gerrit change created: https://git.eclipse.org/r/136688 Hi Patrick, would you be able to take a look at this patch? I believe it resolves the issue but I want to confirm with you (if possible) before merging.
Gerrit change https://git.eclipse.org/r/136688 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=42bf7febc003b13ab578fc601862a0b5d36d2b78
(In reply to Eclipse Genie from comment #6) > Gerrit change https://git.eclipse.org/r/136688 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=42bf7febc003b13ab578fc601862a0b5d36d2b78 In master now.
Verified in I20190219-0600.