forked from Mirrors/bubbletea
Fix a bug where shift+tab would make inputs wig out
This commit is contained in:
parent
82af5a5cb5
commit
73d773109f
2
key.go
2
key.go
|
@ -198,7 +198,7 @@ func ReadKey(r io.Reader) (Key, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is it a control character?
|
// 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
|
return Key{Type: KeyType(c)}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue