1
0
mirror of https://github.com/strongdm/comply synced 2024-11-17 05:14:55 +00:00
comply/vendor/github.com/manifoldco/promptui/keycodes_windows.go
Justin McCarthy 7468711b3b
go.mod: update gitlab dep to v0.30.1
Releases after github.com/xanzy/go-gitlab@v0.31.0 introduce breaking
changes to the NewClient call.

Addresses #94
2020-09-14 11:31:56 -07:00

30 lines
993 B
Go

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"
)