File tree 1 file changed +3
-2
lines changed
modules/javafx.graphics/src/main/native-glass/gtk
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ static std::map<jint, guint32> robot_java_to_keyval;
47
47
// As the user types we build a map from character to Java KeyCode. We use
48
48
// this map in getKeyCodeForChar which ensures we only reference keys that
49
49
// are on the user's keyboard. GDK calls that query the GdkKeymap are slow
50
- // (they scan all the maps each time) and can target keys not present on the
50
+ // (they scan all the maps each time) and can return keys not present on the
51
51
// keyboard.
52
52
static std::map<guint32, jint> char_to_java_code;
53
53
@@ -519,7 +519,8 @@ JNIEXPORT jint JNICALL Java_com_sun_glass_ui_gtk_GtkApplication__1getKeyCodeForC
519
519
520
520
// If we don't find the character in the map fall back to the old logic
521
521
// for compatibility. It is incorrect because it ignores the keyboard
522
- // layout but it can handle characters like tab and space.
522
+ // layout but it can handle characters like space and A-Z on Latin
523
+ // layouts.
523
524
guint keyval = gdk_unicode_to_keyval (*ucs_char);
524
525
525
526
if (keyval == (*ucs_char | 0x01000000 )) {
You can’t perform that action at this time.
0 commit comments