edit: Fix Alt-[ parsing

This commit is contained in:
Cheer Xiao 2013-09-27 20:56:44 +08:00
parent f21de6531f
commit d0694198f6

View File

@ -72,7 +72,7 @@ func (rd *reader) readKey() (k Key, err error) {
r, _, e = rd.buffed.ReadRune()
// Timeout can only happen at first ReadRune.
if e == async.Timeout {
return Key{'[', Ctrl}, nil
return Key{'[', Alt}, nil
} else if e != nil {
return ZeroKey, nil
}