Commit ab21fdca7d9a3e8fd32e4d9ef796327c98f0c0ab

Authored by samuel thibault
1 parent 584d7e29
Exists in master

Add control-enter patch

firefox-patches/patches-60/control-enter 0 โ†’ 100644
... ... @@ -0,0 +1,27 @@
  1 +commit b2d9ab56ace0f4ceeac9e0d23f8c09e4cd70f2b6
  2 +Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
  3 +Date: Fri Feb 15 14:45:18 2019 +0100
  4 +
  5 + atk key: Always convert control character events into key names
  6 +
  7 + including when the control modifier is present, i.e. when one is typing
  8 + control-I for instance.
  9 +
  10 + Orca would convert them back to the corresponding ASCII letter anyway, and
  11 + when pressing control-tab, we do want to pass "tab", not pass "\t" that Orca
  12 + would erroneously convert to "control-I".
  13 +
  14 +Index: firefox-esr-60.5.1esr-1/accessible/atk/UtilInterface.cpp
  15 +===================================================================
  16 +--- firefox-esr-60.5.1esr-1.orig/accessible/atk/UtilInterface.cpp
  17 ++++ firefox-esr-60.5.1esr-1/accessible/atk/UtilInterface.cpp
  18 +@@ -161,8 +161,7 @@ static AtkKeyEventStruct *atk_key_event_
  19 + event->keyval = key->keyval;
  20 + event->length = key->length;
  21 + if (key->string && key->string[0] &&
  22 +- (key->state & GDK_CONTROL_MASK ||
  23 +- g_unichar_isgraph(g_utf8_get_char(key->string)))) {
  24 ++ g_unichar_isgraph(g_utf8_get_char(key->string))) {
  25 + event->string = key->string;
  26 + } else if (key->type == GDK_KEY_PRESS || key->type == GDK_KEY_RELEASE) {
  27 + event->string = gdk_keyval_name(key->keyval);
... ...
firefox-patches/series-60
... ... @@ -4,3 +4,4 @@ blur
4 4 scrollto
5 5 scrollsubstringto
6 6 #jumpedline
  7 +control-enter
... ...
firefox-patches/version
1   -1
  1 +2
... ...
thunderbird-patches/patches-52/control-enter 0 โ†’ 100644
... ... @@ -0,0 +1,25 @@
  1 +commit b2d9ab56ace0f4ceeac9e0d23f8c09e4cd70f2b6
  2 +Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
  3 +Date: Fri Feb 15 14:45:18 2019 +0100
  4 +
  5 + atk key: Always convert control character events into key names
  6 +
  7 + including when the control modifier is present, i.e. when one is typing
  8 + control-I for instance.
  9 +
  10 + Orca would convert them back to the corresponding ASCII letter anyway, and
  11 + when pressing control-tab, we do want to pass "tab", not pass "\t" that Orca
  12 + would erroneously convert to "control-I".
  13 +
  14 +--- a/mozilla/accessible/atk/UtilInterface.cpp
  15 ++++ b/mozilla/accessible/atk/UtilInterface.cpp
  16 +@@ -184,8 +184,7 @@ atk_key_event_from_gdk_event_key (GdkEve
  17 + event->keyval = key->keyval;
  18 + event->length = key->length;
  19 + if (key->string && key->string [0] &&
  20 +- (key->state & GDK_CONTROL_MASK ||
  21 +- g_unichar_isgraph (g_utf8_get_char (key->string)))) {
  22 ++ g_unichar_isgraph (g_utf8_get_char (key->string))) {
  23 + event->string = key->string;
  24 + }
  25 + else if (key->type == GDK_KEY_PRESS ||
... ...
thunderbird-patches/patches-60/control-enter 0 โ†’ 100644
... ... @@ -0,0 +1,29 @@
  1 +commit b2d9ab56ace0f4ceeac9e0d23f8c09e4cd70f2b6
  2 +Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
  3 +Date: Fri Feb 15 14:45:18 2019 +0100
  4 +
  5 + atk key: Always convert control character events into key names
  6 +
  7 + including when the control modifier is present, i.e. when one is typing
  8 + control-I for instance.
  9 +
  10 + Orca would convert them back to the corresponding ASCII letter anyway, and
  11 + when pressing control-tab, we do want to pass "tab", not pass "\t" that Orca
  12 + would erroneously convert to "control-I".
  13 +
  14 +---
  15 + accessible/atk/UtilInterface.cpp | 3 +--
  16 + 1 file changed, 1 insertion(+), 2 deletions(-)
  17 +
  18 +--- a/accessible/atk/UtilInterface.cpp
  19 ++++ b/accessible/atk/UtilInterface.cpp
  20 +@@ -161,8 +161,7 @@ static AtkKeyEventStruct *atk_key_event_
  21 + event->keyval = key->keyval;
  22 + event->length = key->length;
  23 + if (key->string && key->string[0] &&
  24 +- (key->state & GDK_CONTROL_MASK ||
  25 +- g_unichar_isgraph(g_utf8_get_char(key->string)))) {
  26 ++ g_unichar_isgraph(g_utf8_get_char(key->string))) {
  27 + event->string = key->string;
  28 + } else if (key->type == GDK_KEY_PRESS || key->type == GDK_KEY_RELEASE) {
  29 + event->string = gdk_keyval_name(key->keyval);
... ...
thunderbird-patches/series-52
1 1 twisties
  2 +control-enter
... ...
thunderbird-patches/series-60
1   -# rien!
  1 +control-enter
... ...
thunderbird-patches/version
1   -1
  1 +2
... ...