forked from Mirrors/bubbletea
Remove the excessive Key.IsRune() method
This commit is contained in:
parent
fc37167e16
commit
4f2d85494d
5
key.go
5
key.go
|
@ -61,11 +61,6 @@ func (k *KeyMsg) String() (str string) {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsRune returns whether or not the key is a rune.
|
|
||||||
func (k *KeyMsg) IsRune() bool {
|
|
||||||
return k.Type == KeyRunes
|
|
||||||
}
|
|
||||||
|
|
||||||
// Key contains information about a keypress.
|
// Key contains information about a keypress.
|
||||||
type Key struct {
|
type Key struct {
|
||||||
Type KeyType
|
Type KeyType
|
||||||
|
|
Loading…
Reference in New Issue