mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-07 16:45:04 -04:00
Implemented basic conversation list and chat functionality in Text UI
This commit is contained in:
parent
6db7ea7fe0
commit
553ba92b4c
3 changed files with 379 additions and 107 deletions
|
@ -48,12 +48,15 @@ class MainFrame(urwid.Frame):
|
|||
def focus_changed(self):
|
||||
current_focus = self.delegate.widget.get_focus_widgets()[-1]
|
||||
current_focus_path = self.delegate.widget.get_focus_path()
|
||||
RNS.log("Focus changed to: "+str(current_focus_path))
|
||||
|
||||
|
||||
if len(current_focus_path) > 1:
|
||||
if current_focus_path[0] == "body":
|
||||
self.delegate.update_active_shortcuts()
|
||||
|
||||
if self.delegate.sub_displays.active() == self.delegate.sub_displays.conversations_display:
|
||||
# Needed to refresh indicativelistbox styles on mouse focus change
|
||||
self.delegate.sub_displays.conversations_display.focus_change_event()
|
||||
|
||||
def mouse_event(self, size, event, button, col, row, focus):
|
||||
current_focus = self.delegate.widget.get_focus_widgets()[-1]
|
||||
if current_focus != self.current_focus:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue