atk-key-Always-convert-control-character-events-into-key-.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. From: Samuel Thibault <samuel.thibault@ens-lyon.org>
  2. Date: Fri, 15 Feb 2019 13:33:52 +0100
  3. Subject: atk key: Always convert control character events into key names
  4. including when the control modifier is present, i.e. when one is typing
  5. control-I for instance.
  6. Orca would convert them back to the corresponding ASCII letter anyway, and
  7. when pressing control-tab, we do want to pass "tab", not pass "\t" that Orca
  8. would erroneously convert to "control-I".
  9. Fixes #1743
  10. (cherry picked from commit 728f6869cba6360b843a83fe5b525404accb1433)
  11. Origin: upstream, 2.24.33, commit:cf15c11429559a180eb1b185da02b348211d860c
  12. ---
  13. modules/other/gail/gailutil.c | 3 +--
  14. 1 file changed, 1 insertion(+), 2 deletions(-)
  15. diff --git a/modules/other/gail/gailutil.c b/modules/other/gail/gailutil.c
  16. index cab0113..ab97c77 100644
  17. --- a/modules/other/gail/gailutil.c
  18. +++ b/modules/other/gail/gailutil.c
  19. @@ -224,8 +224,7 @@ atk_key_event_from_gdk_event_key (GdkEventKey *key)
  20. event->keyval = key->keyval;
  21. event->length = key->length;
  22. if (key->string && key->string [0] &&
  23. - (key->state & GDK_CONTROL_MASK ||
  24. - g_unichar_isgraph (g_utf8_get_char (key->string))))
  25. + g_unichar_isgraph (g_utf8_get_char (key->string)))
  26. {
  27. event->string = key->string;
  28. }