Fix InfoTab
This commit is contained in:
parent
6d4e5c069e
commit
28b2dbcc84
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue