forked from tigergraph/promptui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keycodes_windows.go
29 lines (21 loc) · 993 Bytes
/
keycodes_windows.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
package promptui
// source: https://msdn.microsoft.com/en-us/library/aa243025(v=vs.60).aspx
var (
// KeyEnter is the default key for submission/selection inside a command line prompt.
KeyEnter rune = 13
// KeyBackspace is the default key for deleting input text inside a command line prompt.
KeyBackspace rune = 8
// FIXME: keys below are not triggered by readline, not working on Windows
// KeyPrev is the default key to go up during selection inside a command line prompt.
KeyPrev rune = 38
KeyPrevDisplay = "k"
// KeyNext is the default key to go down during selection inside a command line prompt.
KeyNext rune = 40
KeyNextDisplay = "j"
// KeyBackward is the default key to page up during selection inside a command line prompt.
KeyBackward rune = 37
KeyBackwardDisplay = "h"
// KeyForward is the default key to page down during selection inside a command line prompt.
KeyForward rune = 39
KeyForwardDisplay = "l"
)