# HG changeset patch # User Goffi # Date 1500014050 -7200 # Node ID a21b3b31086dc189f06736b3ec279119c5fc9c57 # Parent 7df0a77a5064227091e40e3f8dcc3d119b0679b6 primitivus (chat): added "GOTO_BOTTOM" ("G") shortcut to scroll down to last message in history diff -r 7df0a77a5064 -r a21b3b31086d frontends/src/primitivus/chat.py --- a/frontends/src/primitivus/chat.py Fri Jul 14 08:32:49 2017 +0200 +++ b/frontends/src/primitivus/chat.py Fri Jul 14 08:34:10 2017 +0200 @@ -312,6 +312,8 @@ 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) diff -r 7df0a77a5064 -r a21b3b31086d frontends/src/primitivus/keys.py --- a/frontends/src/primitivus/keys.py Fri Jul 14 08:32:49 2017 +0200 +++ b/frontends/src/primitivus/keys.py Fri Jul 14 08:34:10 2017 +0200 @@ -55,6 +55,7 @@ ("chat_panel", "TIMESTAMP_HIDE"): "meta t", ("chat_panel", "SHORT_NICKNAME"): "meta n", ("chat_panel", "SUBJECT_SWITCH"): "meta s", + ("chat_panel", "GOTO_BOTTOM"): "G", #card game ("card_game", "CARD_SELECT"): ' ',