Browse Source

Modify the default keybindings

rigormorrtiss 4 years ago
parent
commit
83f2924186
2 changed files with 8 additions and 8 deletions
  1. 4 4
      README.md
  2. 4 4
      discordo.go

+ 4 - 4
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
 

+ 4 - 4
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)
 	}