From 516e26177a7b24db74833d23b44929917fdd894c Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Fri, 27 Sep 2013 21:27:21 +0800 Subject: [PATCH] edit: Format function key runes more compactly --- edit/key.go | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/edit/key.go b/edit/key.go index 804900ee..e53dfe03 100644 --- a/edit/key.go +++ b/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'