Skip to content

Commit 6de7864

Browse files
committed
Comment fixes
1 parent 07ff8fa commit 6de7864

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/javafx.graphics/src/main/native-glass/gtk/glass_key.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static std::map<jint, guint32> robot_java_to_keyval;
4747
// As the user types we build a map from character to Java KeyCode. We use
4848
// this map in getKeyCodeForChar which ensures we only reference keys that
4949
// 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
5151
// keyboard.
5252
static std::map<guint32, jint> char_to_java_code;
5353

@@ -519,7 +519,8 @@ JNIEXPORT jint JNICALL Java_com_sun_glass_ui_gtk_GtkApplication__1getKeyCodeForC
519519

520520
// If we don't find the character in the map fall back to the old logic
521521
// 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.
523524
guint keyval = gdk_unicode_to_keyval(*ucs_char);
524525

525526
if (keyval == (*ucs_char | 0x01000000)) {

0 commit comments

Comments
 (0)