[orca] Fix for bgo#611321 - keybindings.getInputHandler returns unbound commands as potential keybinding ca
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#611321 - keybindings.getInputHandler returns unbound commands as potential keybinding ca
- Date: Sat, 27 Feb 2010 21:19:20 +0000 (UTC)
commit cb1b76127e0ed5e290c90c6bc2be8ba0490b1d18
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sat Feb 27 15:35:27 2010 -0500
Fix for bgo#611321 - keybindings.getInputHandler returns unbound commands as potential keybinding candidates
src/orca/keybindings.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/keybindings.py b/src/orca/keybindings.py
index a647c4f..cebdd2c 100644
--- a/src/orca/keybindings.py
+++ b/src/orca/keybindings.py
@@ -352,7 +352,11 @@ class KeyBindings:
if keyBinding.modifier_mask == keyboardEvent.modifiers and \
keyBinding.click_count == clickCount:
return keyBinding.handler
- candidates.append(keyBinding)
+ # If there's no keysymstring, it's unbound and cannot be
+ # a match.
+ #
+ if keyBinding.keysymstring:
+ candidates.append(keyBinding)
# If we're still here, we don't have an exact match. Prefer
# the one whose click count is closest to, but does not exceed,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]