[orca: 1/2] capslock: Fix operator priority
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca: 1/2] capslock: Fix operator priority
- Date: Tue, 27 Aug 2019 16:48:27 +0000 (UTC)
commit ff0dd96e6ee4a634a814ba9385a89f4c8e4593fa
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Tue Aug 27 18:26:00 2019 +0200
capslock: Fix operator priority
Missing parenthesis were making orca trigger modifier change twice when
using the capslock key. It seems that at least in some cases Xorg then
cancels the modifier change, thus letting the user stuck with caps lock
enabled or disabled without a way to change it.
src/orca/input_event.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index b2ea10808..d335a46ac 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -655,8 +655,8 @@ class KeyboardEvent(InputEvent):
"""Processes this input event."""
if self._bypassOrca:
- if self.event_string == "Caps_Lock" \
- or self.event_string == "Shift_Lock" \
+ if (self.event_string == "Caps_Lock" \
+ or self.event_string == "Shift_Lock") \
and self.type == pyatspi.KEY_PRESSED_EVENT:
self._lock_mod()
self.keyType = KeyboardEvent.TYPE_LOCKING
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]