primitivus (chat): added "GOTO_BOTTOM" ("G") shortcut to scroll down to last message in history
This commit is contained in:
parent
252e0e29f4
commit
50ff24cc64
1 changed files with 3 additions and 0 deletions
|
|
@ -312,6 +312,8 @@ class Chat(PrimitivusWidget, quick_chat.QuickChat):
|
|||
elif self.show_title == 2:
|
||||
self.chat_widget.header = None
|
||||
self._invalidate()
|
||||
elif key == a_key['GOTO_BOTTOM']: # user wants to focus last message
|
||||
self.mess_widgets.focus_position = len(self.mess_walker) - 1
|
||||
|
||||
return super(Chat, self).keypress(size, key)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue