[orca] Don't present sticky-focus-mode message if already in that mode
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't present sticky-focus-mode message if already in that mode
- Date: Fri, 16 Oct 2015 19:24:09 +0000 (UTC)
commit 122f66408410ea5cd061ac2e016f78fb89ebb3c7
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Oct 16 15:22:31 2015 -0400
Don't present sticky-focus-mode message if already in that mode
src/orca/scripts/web/script.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 55d987b..f55a4a8 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -929,9 +929,11 @@ class Script(default.Script):
self._lastMouseOverObject = None
def enableStickyFocusMode(self, inputEvent):
+ if not self._focusModeIsSticky:
+ self.presentMessage(messages.MODE_FOCUS_IS_STICKY)
+
self._inFocusMode = True
self._focusModeIsSticky = True
- self.presentMessage(messages.MODE_FOCUS_IS_STICKY)
def togglePresentationMode(self, inputEvent):
if self._inFocusMode:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]