|
@@ -43,8 +43,7 @@ func onGuildsListSelected(app *App, guildIdx int) {
|
|
|
app.SelectedMessage = -1
|
|
app.SelectedMessage = -1
|
|
|
app.MessagesTextView.
|
|
app.MessagesTextView.
|
|
|
Highlight().
|
|
Highlight().
|
|
|
- Clear().
|
|
|
|
|
- SetTitle("")
|
|
|
|
|
|
|
+ Clear()
|
|
|
app.MessageInputField.SetText("")
|
|
app.MessageInputField.SetText("")
|
|
|
|
|
|
|
|
// If the user is a bot account, the direct messages item does not exist in the guilds list.
|
|
// If the user is a bot account, the direct messages item does not exist in the guilds list.
|
|
@@ -138,8 +137,6 @@ func onChannelsTreeViewSelected(app *App, n *tview.TreeNode) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
app.SelectedChannel = c
|
|
app.SelectedChannel = c
|
|
|
-
|
|
|
|
|
- app.MessagesTextView.SetTitle(channelToString(c))
|
|
|
|
|
app.SetFocus(app.MessageInputField)
|
|
app.SetFocus(app.MessageInputField)
|
|
|
|
|
|
|
|
go func() {
|
|
go func() {
|
|
@@ -255,6 +252,14 @@ func onMessagesTextViewInputCapture(app *App, e *tcell.EventKey) *tcell.EventKey
|
|
|
|
|
|
|
|
app.SetRoot(messageActionsList, true)
|
|
app.SetRoot(messageActionsList, true)
|
|
|
|
|
|
|
|
|
|
+ return nil
|
|
|
|
|
+ case "Esc":
|
|
|
|
|
+ app.SelectedMessage = -1
|
|
|
|
|
+ app.SetFocus(app.MainFlex)
|
|
|
|
|
+ app.MessagesTextView.
|
|
|
|
|
+ Clear().
|
|
|
|
|
+ Highlight()
|
|
|
|
|
+
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|