[orca] Work around for BackSpace and Delete text changed events not being presented
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around for BackSpace and Delete text changed events not being presented
- Date: Mon, 2 Sep 2013 20:54:47 +0000 (UTC)
commit b1c1ea445a985a44c9f2c989a6fa2fddf4a0dd5b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Sep 2 16:45:07 2013 -0400
Work around for BackSpace and Delete text changed events not being presented
src/orca/script_utilities.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 4814302..f74c0fc 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2652,7 +2652,11 @@ class Utilities:
if isinstance(orca_state.lastInputEvent, input_event.KeyboardEvent) \
and orca_state.lastNonModifierKeyEvent:
- eventStr = orca_state.lastNonModifierKeyEvent.event_string
+ event = orca_state.lastNonModifierKeyEvent
+ if event.keyval_name in ["BackSpace", "Delete"]:
+ eventStr = event.keyval_name
+ else:
+ eventStr = event.event_string
mods = orca_state.lastInputEvent.modifiers
else:
eventStr = ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]