[orca] Fix the presentation of mnemonics which are accented letters
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix the presentation of mnemonics which are accented letters
- Date: Sun, 4 Mar 2012 15:16:09 +0000 (UTC)
commit 43cde8669871f1fea88f70e27905394d686e403d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Mar 4 10:15:37 2012 -0500
Fix the presentation of mnemonics which are accented letters
src/orca/script_utilities.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index e4ed43e..7a97658 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2810,7 +2810,9 @@ class Utilities:
try:
from gi.repository import Gtk
key, mods = Gtk.accelerator_parse(sequence)
- sequence = Gtk.accelerator_get_label(key, mods)
+ newSequence = Gtk.accelerator_get_label(key, mods)
+ if newSequence and not newSequence.endswith('+'):
+ sequence = newSequence
except:
if sequence.endswith(" "):
# Translators: this is the spoken word for the space character
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]