[orca/gnome-3-12] Filter out non-standard modifiers when capturing keys for bindings



commit 51bf3ced1bb4e1472c1ab22f61480b284c231272
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Sep 10 19:05:45 2014 -0400

    Filter out non-standard modifiers when capturing keys for bindings

 src/orca/orca_gui_prefs.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index fb12d01..13a180a 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -2573,6 +2573,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
         if eventString in modifierKeys:
             return False
 
+        eventState = eventState & Gtk.accelerator_get_default_mod_mask()
         if not self._capturedKey \
            or eventString in ['Return', 'Escape']:
             self._capturedKey = [eventString, eventState, 1]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]