summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-12 20:18:34 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-12 20:18:34 +0100
commit28b2dbcc84ccb553bd02ea8fad2947f0a3effd95 (patch)
tree41cafe5f23d08c83b0f4acf649f8af2a46f41e6c
parent6d4e5c069ec1a953f01c1abacc398a05c5a1485d (diff)
downloadpoezio-28b2dbcc84ccb553bd02ea8fad2947f0a3effd95.tar.gz
poezio-28b2dbcc84ccb553bd02ea8fad2947f0a3effd95.tar.bz2
poezio-28b2dbcc84ccb553bd02ea8fad2947f0a3effd95.tar.xz
poezio-28b2dbcc84ccb553bd02ea8fad2947f0a3effd95.zip
Fix InfoTab
-rw-r--r--src/tabs.py2
-rw-r--r--src/windows.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 1c0e4d93..c7ba1b50 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -308,7 +308,7 @@ class InfoTab(ChatTab):
return False
def on_enter(self):
- self.execute_command(self.input_enter_key())
+ self.execute_command(self.input.key_enter())
def on_lose_focus(self):
self.color_state = theme.COLOR_TAB_NORMAL
diff --git a/src/windows.py b/src/windows.py
index b14bb93f..d856b31c 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1000,6 +1000,11 @@ class Input(Win):
self.line_pos = 0
self.rewrite_text()
+ def key_enter(self):
+ txt = self.get_text()
+ self.clear_text()
+ return txt
+
class MessageInput(Input):
"""
The input featuring history and that is being used in