-
Notifications
You must be signed in to change notification settings - Fork 12
/
defaults.go
31 lines (29 loc) · 1.12 KB
/
defaults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package keybindings
import "github.com/jroimartin/gocui"
// DefaultKeys are the default key bindings for each handler.
var DefaultKeys = map[string]gocui.Key{
"quit": gocui.KeyCtrlC,
"copy": gocui.KeyCtrlS,
"listdelete": gocui.KeyDelete,
"fullscreen": gocui.KeyCtrlF,
"help": gocui.KeyCtrlI,
"itemback": gocui.KeyBackspace2,
"itemleft": gocui.KeyArrowLeft,
"listactions": gocui.KeyCtrlA,
"listback": gocui.KeyBackspace2,
"listbacklegacy": gocui.KeyBackspace,
"listdown": gocui.KeyArrowDown,
"listup": gocui.KeyArrowUp,
"listright": gocui.KeyArrowRight,
"listedit": gocui.KeyCtrlE,
"listexpand": gocui.KeyEnter,
"listopen": gocui.KeyCtrlO,
"listrefresh": gocui.KeyF5,
"listupdate": gocui.KeyCtrlU,
"listpagedown": gocui.KeyPgdn,
"listpageup": gocui.KeyPgup,
"listend": gocui.KeyEnd,
"listhome": gocui.KeyHome,
"confirmdelete": gocui.KeyCtrlY,
"clearpendingdeletes": gocui.KeyCtrlN,
}