Set focus to main flex when Esc is pressed when focus on message input field
This commit is contained in:
parent
3936a6f07b
commit
99481e5712
1 changed files with 4 additions and 2 deletions
|
|
@ -314,8 +314,10 @@ func onMessageInputFieldInputCapture(app *App, e *tcell.EventKey) *tcell.EventKe
|
|||
app.MessageInputField.SetText(text)
|
||||
return nil
|
||||
case "Esc":
|
||||
app.MessageInputField.SetText("")
|
||||
app.MessageInputField.SetTitle("")
|
||||
app.MessageInputField.
|
||||
SetText("").
|
||||
SetTitle("")
|
||||
app.SetFocus(app.MainFlex)
|
||||
|
||||
app.SelectedMessage = -1
|
||||
app.MessagesTextView.Highlight()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue