Explorar el Código

Change focus back to messages TextView when Escape is pressed

ayntgl hace 4 años
padre
commit
3a7e0b4c82
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      ui/handlers.go

+ 3 - 1
ui/handlers.go

@@ -220,7 +220,9 @@ func onMessagesTextViewInputCapture(app *App, e *tcell.EventKey) *tcell.EventKey
 			AddItem("Copy Content", "", 'c', nil).
 			AddItem("Copy ID", "", 'i', nil).
 			SetDoneFunc(func() {
-				app.SetRoot(app.MainFlex, true)
+				app.
+					SetRoot(app.MainFlex, true).
+					SetFocus(app.MessagesTextView)
 			}).
 			SetSelectedFunc(func(_ int, mainText string, _ string, _ rune) {
 				onMessageActionsListSelected(app, mainText, m)