Fix focus on input box

This commit is contained in:
John Mertz 2024-03-01 16:25:33 -07:00
parent 8eae5abc76
commit d04d674983
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 11 additions and 4 deletions

View File

@ -223,10 +223,17 @@ class ConversationView(urwid.WidgetWrap):
self.send_button, self.send_button,
]) ])
self.header = urwid.Text("VoIP.ms SMS TUI", urwid.CENTER) self.header = urwid.Text("VoIP.ms SMS TUI", urwid.CENTER)
self.view = urwid.Frame( self.view = urwid.Pile([
urwid.AttrMap(self.chat, "body"), ('pack', urwid.AttrMap(self.header, "header")),
header=urwid.AttrMap(self.header, "header"), urwid.AttrMap(
footer=urwid.AttrMap(self.send, "footer") urwid.ScrollBar(
self.chat,
trough_char=urwid.ScrollBar.Symbols.LITE_SHADE
),
"body"
),
('pack', urwid.AttrMap(self.send, "footer")),
]
) )
c = self.conversation_selection() c = self.conversation_selection()
w = urwid.Columns( w = urwid.Columns(