[orca/gnome-3-6] 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/gnome-3-6] 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:10 +0000 (UTC)
commit d13e660075d067a5601c8a4326f03115a7e0ccda
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Aug 10 15:44:10 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 4efed86..8100c28 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -2888,7 +2888,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)
@@ -2896,8 +2897,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]