[kupfer] browser: Allow left-right-arrow in text mode



commit 846977ffba83100a198fcee91e74b2eaa0af4d35
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Sep 16 23:20:58 2009 +0200

    browser: Allow left-right-arrow in text mode
    
    We let Left and Right arrows through in text mode, so that you can use
    them to go back/forward in the text without erasing the input.

 kupfer/browser.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index 7bb0a8d..942db39 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -849,6 +849,9 @@ class Interface (gobject.GObject):
 					# swallow if it is the direct key
 					swallow = (keyv == direct_text_key)
 					return swallow
+		elif keyv in (key_book["Left"], key_book["Right"]):
+			# pass these through in text mode
+			return False
 
 		# activate on repeated key
 		if ((not text_mode) and self._key_pressed == keyv and



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