-
Notifications
You must be signed in to change notification settings - Fork 412
/
keys.go
76 lines (74 loc) · 2.44 KB
/
keys.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package main
import (
"github.com/jroimartin/gocui"
)
var KEYS = map[string]gocui.Key{
"F1": gocui.KeyF1,
"F2": gocui.KeyF2,
"F3": gocui.KeyF3,
"F4": gocui.KeyF4,
"F5": gocui.KeyF5,
"F6": gocui.KeyF6,
"F7": gocui.KeyF7,
"F8": gocui.KeyF8,
"F9": gocui.KeyF9,
"F10": gocui.KeyF10,
"F11": gocui.KeyF11,
"F12": gocui.KeyF12,
"Insert": gocui.KeyInsert,
"Delete": gocui.KeyDelete,
"Home": gocui.KeyHome,
"End": gocui.KeyEnd,
"PageUp": gocui.KeyPgup,
"PageDown": gocui.KeyPgdn,
"ArrowUp": gocui.KeyArrowUp,
"ArrowDown": gocui.KeyArrowDown,
"ArrowLeft": gocui.KeyArrowLeft,
"ArrowRight": gocui.KeyArrowRight,
"CtrlTilde": gocui.KeyCtrlTilde,
"Ctrl2": gocui.KeyCtrl2,
"CtrlSpace": gocui.KeyCtrlSpace,
"CtrlA": gocui.KeyCtrlA,
"CtrlB": gocui.KeyCtrlB,
"CtrlC": gocui.KeyCtrlC,
"CtrlD": gocui.KeyCtrlD,
"CtrlE": gocui.KeyCtrlE,
"CtrlF": gocui.KeyCtrlF,
"CtrlG": gocui.KeyCtrlG,
"Backspace": gocui.KeyBackspace,
"CtrlH": gocui.KeyCtrlH,
"Tab": gocui.KeyTab,
"CtrlI": gocui.KeyCtrlI,
"CtrlJ": gocui.KeyCtrlJ,
"CtrlK": gocui.KeyCtrlK,
"CtrlL": gocui.KeyCtrlL,
"Enter": gocui.KeyEnter,
"CtrlM": gocui.KeyCtrlM,
"CtrlN": gocui.KeyCtrlN,
"CtrlO": gocui.KeyCtrlO,
"CtrlP": gocui.KeyCtrlP,
"CtrlQ": gocui.KeyCtrlQ,
"CtrlR": gocui.KeyCtrlR,
"CtrlS": gocui.KeyCtrlS,
"CtrlT": gocui.KeyCtrlT,
"CtrlU": gocui.KeyCtrlU,
"CtrlV": gocui.KeyCtrlV,
"CtrlW": gocui.KeyCtrlW,
"CtrlX": gocui.KeyCtrlX,
"CtrlY": gocui.KeyCtrlY,
"CtrlZ": gocui.KeyCtrlZ,
"Esc": gocui.KeyEsc,
"CtrlLsqBracket": gocui.KeyCtrlLsqBracket,
"Ctrl3": gocui.KeyCtrl3,
"Ctrl4": gocui.KeyCtrl4,
"CtrlBackslash": gocui.KeyCtrlBackslash,
"Ctrl5": gocui.KeyCtrl5,
"CtrlRsqBracket": gocui.KeyCtrlRsqBracket,
"Ctrl6": gocui.KeyCtrl6,
"Ctrl7": gocui.KeyCtrl7,
"CtrlSlash": gocui.KeyCtrlSlash,
"CtrlUnderscore": gocui.KeyCtrlUnderscore,
"Space": gocui.KeySpace,
"Backspace2": gocui.KeyBackspace2,
"Ctrl8": gocui.KeyCtrl8,
}