comparison frontends/src/primitivus/chat.py @ 2333:a21b3b31086d

primitivus (chat): added "GOTO_BOTTOM" ("G") shortcut to scroll down to last message in history
author Goffi <goffi@goffi.org>
date Fri, 14 Jul 2017 08:34:10 +0200
parents 7df0a77a5064
children b226f545f67e
comparison
equal deleted inserted replaced
2332:7df0a77a5064 2333:a21b3b31086d
310 elif self.show_title == 1: 310 elif self.show_title == 1:
311 self.setSubject(self.subject, 'space') 311 self.setSubject(self.subject, 'space')
312 elif self.show_title == 2: 312 elif self.show_title == 2:
313 self.chat_widget.header = None 313 self.chat_widget.header = None
314 self._invalidate() 314 self._invalidate()
315 elif key == a_key['GOTO_BOTTOM']: # user wants to focus last message
316 self.mess_widgets.focus_position = len(self.mess_walker) - 1
315 317
316 return super(Chat, self).keypress(size, key) 318 return super(Chat, self).keypress(size, key)
317 319
318 def completion(self, text, completion_data): 320 def completion(self, text, completion_data):
319 """Completion method which complete nicknames in group chat 321 """Completion method which complete nicknames in group chat