Render initial chat prompt and submitted messages
This commit is contained in:
committed by
Brandon McGinty
parent
21e0627509
commit
dc9dedb523
+7
-1
@@ -147,7 +147,13 @@ func (t *Textbox) uiKeyEvent(key Key) {
|
||||
// }
|
||||
}
|
||||
if redraw {
|
||||
t.uiDraw()
|
||||
// Input callbacks may update another view (for example, append a chat
|
||||
// message). Redraw every view after submission, not just this textbox.
|
||||
if key == KeyEnter && t.ui != nil {
|
||||
t.ui.Refresh()
|
||||
} else {
|
||||
t.uiDraw()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user