Skip to content

Commit

Permalink
del from predefined ANSI, moved keys to "other keys" so values auto-s…
Browse files Browse the repository at this point in the history
…et via the iota
  • Loading branch information
Bwahharharrr committed Mar 21, 2022
1 parent 6dbb568 commit d5ffe05
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions key.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,6 @@ const (
keyUS KeyType = 31 // unit separator
keySP KeyType = 32 // space
keyDEL KeyType = 127 // delete. on most systems this is mapped to backspace, I hear
KeyCU KeyType = 200 // ctrl+up
KeyCD KeyType = 201 // ctrl+down
KeyCR KeyType = 202 // ctrl+right
KeyCL KeyType = 203 // ctrl+left
KeySU KeyType = 204 // shift+up
KeySD KeyType = 205 // shift+down
KeySR KeyType = 206 // shift+right
KeySL KeyType = 207 // shift+left
)

// Control key aliases.
Expand Down Expand Up @@ -193,14 +185,6 @@ const (
KeyCtrlCaret KeyType = keyRS // ctrl+^
KeyCtrlUnderscore KeyType = keyUS // ctrl+_
KeyCtrlQuestionMark KeyType = keyDEL // ctrl+?
KeyCtrlUp KeyType = KeyCU // ctrl+up
KeyCtrlDown KeyType = KeyCD // ctrl+down
KeyCtrlRight KeyType = KeyCR // ctrl+right
KeyCtrlLeft KeyType = KeyCL // ctrl+left
KeyShiftUp KeyType = KeySU // shift+up
KeyShiftDown KeyType = KeySD // shift+down
KeyShiftRight KeyType = KeySR // shift+right
KeyShiftLeft KeyType = KeySL // shift+left
)

// Other keys.
Expand All @@ -216,6 +200,14 @@ const (
KeyPgUp
KeyPgDown
KeyDelete
KeyCtrlUp
KeyCtrlDown
KeyCtrlRight
KeyCtrlLeft
KeyShiftUp
KeyShiftDown
KeyShiftRight
KeyShiftLeft
)

// Mapping for control keys to friendly consts.
Expand Down

0 comments on commit d5ffe05

Please sign in to comment.