mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 01:47:51 +08:00
edit: Format function key runes more compactly
This commit is contained in:
parent
3c2ab4c15e
commit
516e26177a
27
edit/key.go
27
edit/key.go
|
@ -39,30 +39,9 @@ func (k Key) String() (s string) {
|
|||
}
|
||||
|
||||
const (
|
||||
F1 rune = -1-iota
|
||||
F2
|
||||
F3
|
||||
F4
|
||||
F5
|
||||
F6
|
||||
F7
|
||||
F8
|
||||
F9
|
||||
F10
|
||||
F11
|
||||
F12
|
||||
|
||||
Up
|
||||
Down
|
||||
Right
|
||||
Left
|
||||
|
||||
Home
|
||||
Insert
|
||||
Delete
|
||||
End
|
||||
PageUp
|
||||
PageDown
|
||||
F1 rune = -1-iota; F2; F3; F4; F5; F6; F7; F8; F9; F10; F11; F12;
|
||||
Up; Down; Right; Left;
|
||||
Home; Insert; Delete; End; PageUp; PageDown;
|
||||
|
||||
// Some function key names are just aliases for their ASCII representation
|
||||
Tab = '\t'
|
||||
|
|
Loading…
Reference in New Issue
Block a user