diff frontends/src/primitivus/contact_list.py @ 524:0bb595eff25b

primitivus: Primitivus is now modal (vi-like behaviour): - there are currently 3 modes: NORMAL, INSERTION and COMMAND - when a chat window is selected, INSERTION mode is set if possible - completion is managed according to mode. Currently only INSERTION mode do something - first command implementation: :quit
author Goffi <goffi@goffi.org>
date Sun, 21 Oct 2012 16:40:19 +0200
parents 62f7f2403093
children ca13633d3b6b
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py	Sun Oct 21 13:37:15 2012 +0200
+++ b/frontends/src/primitivus/contact_list.py	Sun Oct 21 16:40:19 2012 +0200
@@ -107,6 +107,7 @@
                 widget.setState(widget.data == self.selected, invisible=True)
         if self.selected in self.alert_jid:
             self.alert_jid.remove(self.selected)
+        self.host.modeHint('INSERTION')
         self.update()
         self._emit('click')