Revert shift+tab fix because it broke sequences like left/right

This commit is contained in:
Christian Rocha
2020-02-18 11:06:57 -05:00
parent 645a88ca26
commit d38a22380b

2
key.go
View File

@@ -199,7 +199,7 @@ func ReadKey(r io.Reader) (Key, error) {
}
// Is it a control character?
if /*n == 1 &&*/ c <= keyUS || c == keyDEL {
if n == 1 && c <= keyUS || c == keyDEL {
return Key{Type: KeyType(c)}, nil
}