[kupfer: 4/10] ui: Reset key held state on different button press.



commit bd700607b290385697e295429948fc661e764148
Author: David Schneider <dnschneid gmail com>
Date:   Mon Apr 25 17:45:49 2011 +0200

    ui: Reset key held state on different button press.

 kupfer/ui/browser.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index 35b0bc5..be26ec0 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1165,6 +1165,9 @@ class Interface (gobject.GObject):
 		else:
 			self._key_press_time = curtime
 			self._key_pressed = keyv
+			if self._key_held:
+				self._key_held_feedback(False)
+				self._key_held = False
 
 
 		# exit here if it's not a special key



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]