diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-23 15:25:18 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-11-23 15:25:18 +0000 |
commit | d0cfb69b02ceda831530c782c15758edb6b9e914 (patch) | |
tree | 77b32aca49e2f29dad4ad9f7793562eb47654ae2 /src | |
parent | 0648da85bc6aa4b96beb65577377e6c9671ec138 (diff) | |
download | poezio-d0cfb69b02ceda831530c782c15758edb6b9e914.tar.gz poezio-d0cfb69b02ceda831530c782c15758edb6b9e914.tar.bz2 poezio-d0cfb69b02ceda831530c782c15758edb6b9e914.tar.xz poezio-d0cfb69b02ceda831530c782c15758edb6b9e914.zip |
fix ctrl+F on roster
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -487,7 +487,7 @@ class RosterInfoTab(Tab): } res = self.input.do_command(key) if res: - return False + return True if key in key_commands: return key_commands[key]() @@ -568,17 +568,20 @@ class RosterInfoTab(Tab): in it. """ curses.curs_set(1) - self.input = windows.CommandInput(1, self.width, self.height-1, 0, self.default_help_message, "[Search]", self.on_search_terminate, self.on_search_terminate, self.set_roster_filter) + self.input = windows.CommandInput("[Search]", self.on_search_terminate, self.on_search_terminate, self.set_roster_filter) + self.input.resize(1, self.width, self.height-1, 0, self.core.stdscr) return True def set_roster_filter(self, txt): roster._contact_filter = (jid_and_name_match, txt) + self.roster_win.refresh(roster) + return False def on_search_terminate(self, txt): curses.curs_set(0) roster._contact_filter = None self.reset_help_message() - return False + return True def just_before_refresh(self): return |