From 83f2924186e7270002bbc4bfd7a65518f57f3e70 Mon Sep 17 00:00:00 2001 From: rigormorrtiss Date: Tue, 24 Aug 2021 00:29:19 +0400 Subject: [PATCH] Modify the default keybindings --- README.md | 8 ++++---- discordo.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 76d0723..c141053 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,10 @@ By default, Discordo utilizes OS-specific keyring to store credentials such as c ### Default Keybindings -- `Alt` + `1`: Sets the focus on the guilds treeview. -- `Alt` + `2`: Sets the focus on the channels treeview. -- `Alt` + `3`: Sets the focus on the messages textview. -- `Alt` + `4`: Sets the focus on the message inputfield. +- `Alt` + `g`: Sets the focus on the guilds treeview. +- `Alt` + `c`: Sets the focus on the channels treeview. +- `Alt` + `m`: Sets the focus on the messages textview. +- `Alt` + `i`: Sets the focus on the message inputfield. ### Clipboard diff --git a/discordo.go b/discordo.go index 14179a0..56b74c1 100644 --- a/discordo.go +++ b/discordo.go @@ -70,13 +70,13 @@ func main() { func onAppInputCapture(e *tcell.EventKey) *tcell.EventKey { switch e.Name() { - case "Alt+Rune[1]": + case "Alt+Rune[g]": app.SetFocus(guildsTreeView) - case "Alt+Rune[2]": + case "Alt+Rune[c]": app.SetFocus(channelsTreeView) - case "Alt+Rune[3]": + case "Alt+Rune[m]": app.SetFocus(messagesTextView) - case "Alt+Rune[4]": + case "Alt+Rune[i]": app.SetFocus(messageInputField) }