Modify the default keybindings

This commit is contained in:
rigormorrtiss 2021-08-24 00:29:19 +04:00
parent 464551cc98
commit 83f2924186
2 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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)
}