[kupfer] browser: Allow left-right-arrow in text mode
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] browser: Allow left-right-arrow in text mode
- Date: Thu, 17 Sep 2009 19:22:59 +0000 (UTC)
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]