[orca/gnome-3-4] Fix for bug 673336 - Problems binding and rebinding commands with Caps_Lock
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-4] Fix for bug 673336 - Problems binding and rebinding commands with Caps_Lock
- Date: Mon, 2 Apr 2012 11:07:51 +0000 (UTC)
commit 9d51d3a30d4fac2c9e8dee3a84d88ad84d1e5c6f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Apr 2 07:07:48 2012 -0400
Fix for bug 673336 - Problems binding and rebinding commands with Caps_Lock
src/orca/orca_gui_prefs.py | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index 4c0b777..5921150 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -2803,12 +2803,6 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
eventString = Gdk.keyval_name(entries[0])
eventState = keyPressedEvent.state
- modifierKeys = ['Alt_L', 'Alt_R', 'Control_L', 'Control_R',
- 'Shift_L', 'Shift_R', 'Meta_L', 'Meta_R',
- 'Num_Lock', 'Caps_Lock']
- if eventString in modifierKeys:
- return False
-
orcaMods = settings.orcaModifierKeys
try:
orcaMods = map(lambda x: x.encode('UTF-8'), orcaMods)
@@ -2818,6 +2812,12 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
self._capturedKey = ['', settings.ORCA_MODIFIER_MASK, 0]
return False
+ modifierKeys = ['Alt_L', 'Alt_R', 'Control_L', 'Control_R',
+ 'Shift_L', 'Shift_R', 'Meta_L', 'Meta_R',
+ 'Num_Lock', 'Caps_Lock']
+ if eventString in modifierKeys:
+ return False
+
if not self._capturedKey \
or eventString in ['Return', 'Escape']:
self._capturedKey = [eventString, eventState, 1]
@@ -2929,7 +2929,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
treeModel.set(myiter,
modMask, str(settings.defaultModifierMask),
- modUsed, str(mods),
+ modUsed, str(int(mods)),
key, string,
text, new_text,
click_count, str(clickCount),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]