def _input_filter(self, keys, _):
if keys == [self._keys['<STR_LIT>']]:<EOL><INDENT>if self._urwid_loop.widget == self._tabbed_window:<EOL><INDENT>self._show_menu()<EOL><DEDENT>else:<EOL><INDENT>self._hide_menu()<EOL><DEDENT><DEDENT>elif keys == [self._keys['<STR_LIT>']]:<EOL><INDENT>self._coroutine_queue.put(self._client.disconnect())<EOL><DEDENT>else:<EOL><INDENT>return keys<EOL><DEDENT>
Handle global keybindings.