зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1535325 atk: Always convert control character events into key names r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D23638 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7ef3995139
Коммит
2d9c404352
|
@ -161,8 +161,7 @@ static AtkKeyEventStruct *atk_key_event_from_gdk_event_key(GdkEventKey *key) {
|
|||
event->keyval = key->keyval;
|
||||
event->length = key->length;
|
||||
if (key->string && key->string[0] &&
|
||||
(key->state & GDK_CONTROL_MASK ||
|
||||
g_unichar_isgraph(g_utf8_get_char(key->string)))) {
|
||||
g_unichar_isgraph(g_utf8_get_char(key->string))) {
|
||||
event->string = key->string;
|
||||
} else if (key->type == GDK_KEY_PRESS || key->type == GDK_KEY_RELEASE) {
|
||||
event->string = gdk_keyval_name(key->keyval);
|
||||
|
|
Загрузка…
Ссылка в новой задаче