Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GTK4] Incorrect keycode conversion displayed when key pressed in Snippet 25 #214

Closed
Tracked by #227
jasonhy-wang opened this issue Jun 20, 2022 · 1 comment
Closed
Tracked by #227
Labels
Linux/GTK Happens on Linux

Comments

@jasonhy-wang
Copy link
Contributor

Using GTK4, when running snippet 25, the character conversion from keycode doesn't match the keys pressed.

jasonhy-wang pushed a commit to jasonhy-wang/eclipse.platform.swt that referenced this issue Jun 20, 2022
…hen key pressed in Snippet 25

+ get translated keyval from GTK

The issue was that in GTK4, keyval and keycode are auto translated without requiring a keymap.
This was a very trivial fix of getting keyval and converting it into keycode using gdk_keyval_to_unicode

Signed-off-by: Jason Wang <[email protected]>
@lshanmug lshanmug added the Linux/GTK Happens on Linux label Jun 21, 2022
akurtakov pushed a commit that referenced this issue Jun 23, 2022
…in Snippet 25

+ get translated keyval from GTK

The issue was that in GTK4, keyval and keycode are auto translated without requiring a keymap.
This was a very trivial fix of getting keyval and converting it into keycode using gdk_keyval_to_unicode

Signed-off-by: Jason Wang <[email protected]>
@joel-majano
Copy link
Contributor

Tracked in #228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux/GTK Happens on Linux
Projects
None yet
Development

No branches or pull requests

3 participants