edit: Format function key runes more compactly

This commit is contained in:
Cheer Xiao 2013-09-27 21:27:21 +08:00
parent 3c2ab4c15e
commit 516e26177a

View File

@ -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'