[orca/gnome-3-6] Fix for traceback when determining whether a MouseButtonEvent should be ignored
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-6] Fix for traceback when determining whether a MouseButtonEvent should be ignored
- Date: Mon, 6 Aug 2012 09:48:45 +0000 (UTC)
commit 9846185cc1c6520f0a2b6ebe3c9cb6ddbcc68f02
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Aug 6 11:25:17 2012 +0200
Fix for traceback when determining whether a MouseButtonEvent should be ignored
src/orca/input_event.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/input_event.py b/src/orca/input_event.py
index 1c1d5e2..76c9382 100644
--- a/src/orca/input_event.py
+++ b/src/orca/input_event.py
@@ -382,7 +382,8 @@ class KeyboardEvent(InputEvent):
return False
if not orca_state.lastInputEvent:
return False
- if isinstance(self, MouseButtonEvent):
+ if isinstance(self, MouseButtonEvent) \
+ or isinstance(orca_state.lastInputEvent, MouseButtonEvent):
return False
if self.hw_code == orca_state.lastInputEvent.hw_code \
and self.type == orca_state.lastInputEvent.type:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]