forked from AuroraMiddleware/gtk
Show lock warning for num lock as well as caps lock
https://bugzilla.gnome.org/show_bug.cgi?id=623239
This commit is contained in:
parent
0cfb94cdd4
commit
85e3f22c19
@ -10016,7 +10016,12 @@ keymap_state_changed (GdkKeymap *keymap,
|
||||
|
||||
if (gtk_entry_get_display_mode (entry) != DISPLAY_NORMAL && priv->caps_lock_warning)
|
||||
{
|
||||
if (gdk_keymap_get_caps_lock_state (keymap))
|
||||
if (gdk_keymap_get_num_lock_state (keymap)
|
||||
&& gdk_keymap_get_caps_lock_state (keymap))
|
||||
text = _("Caps Lock and Num Lock are on");
|
||||
else if (gdk_keymap_get_num_lock_state (keymap))
|
||||
text = _("Num Lock is on");
|
||||
else if (gdk_keymap_get_caps_lock_state (keymap))
|
||||
text = _("Caps Lock is on");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user