forked from Mirrors/bubbletea
Simplify IsRune()
This commit is contained in:
parent
4eff2d0ccc
commit
47bfe2b5df
5
key.go
5
key.go
@ -21,10 +21,7 @@ func (k *KeyMsg) String() string {
|
|||||||
|
|
||||||
// IsRune returns weather or not the key is a rune
|
// IsRune returns weather or not the key is a rune
|
||||||
func (k *KeyMsg) IsRune() bool {
|
func (k *KeyMsg) IsRune() bool {
|
||||||
if k.Type == KeyRune {
|
return k.Type == KeyRune
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Key struct {
|
type Key struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user