[orca] Additional fix for bug 665804 - Problems binding and rebinding commands with Caps_Lock and Shift
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Additional fix for bug 665804 - Problems binding and rebinding commands with Caps_Lock and Shift
- Date: Fri, 9 Dec 2011 21:12:55 +0000 (UTC)
commit ffd6f349fbd38911bec6f2b24f2ec14fdfbf3bc2
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Dec 9 16:12:55 2011 -0500
Additional fix for bug 665804 - Problems binding and rebinding commands with Caps_Lock and Shift
Need to strip out reserved modifiers
src/orca/orca_gui_prefs.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index 696299a..cb90b83 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -27,6 +27,7 @@ __license__ = "LGPL"
import os
import sys
+from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import GObject
from gi.repository import Pango
@@ -2989,6 +2990,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
mods = 0
clickCount = 1
+ mods = mods & Gdk.ModifierType.MODIFIER_MASK
if mods & (1 << pyatspi.MODIFIER_SHIFTLOCK) \
and mods & settings.ORCA_MODIFIER_MASK:
mods ^= (1 << pyatspi.MODIFIER_SHIFTLOCK)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]