[orca] Fix for bug 681569 - Unable to bind double-click keybinding if there is a duplicate single-click key
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 681569 - Unable to bind double-click keybinding if there is a duplicate single-click key
- Date: Fri, 10 Aug 2012 19:45:22 +0000 (UTC)
commit 65c3ba3a13f0532847c3285205b4285bbd09daaa
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Aug 10 15:44:59 2012 -0400
Fix for bug 681569 - Unable to bind double-click keybinding if there is a duplicate single-click keybinding
src/orca/orca_gui_prefs.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index 0e1aaa9..e8eefa0 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -2871,7 +2871,8 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
# entered has already been bound to another command.
#
msg = _("The key entered is already bound to %s") % description
- self._capturedKey = []
+ delay = int(1000 * settings.doubleClickTimeout)
+ GObject.timeout_add(delay, self._presentMessage, msg)
else:
# Translators: this is a spoken prompt letting the user know Orca
# know Orca has recorded a new key combination (e.g., Alt+Ctrl+g)
@@ -2879,8 +2880,8 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
#
msg = _("Key captured: %s. Press enter to confirm.") % newString
editable.set_text(newString)
+ self._presentMessage(msg)
- self._presentMessage(msg)
return True
def editedKey(self, cell, path, new_text, treeModel,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]