This commit fixes the key matching logic to accept both the key.Text and
key.String representations of keys. This allows for more flexible key
matching, especially when dealing with different keyboard layouts or
input methods.
Fixes: https://github.com/charmbracelet/bubbletea/issues/1390
* feat(key): accept any stringer interface to match keys
This allows any `fmt.Stringer` interface to match key bindings. We need
this in the upcoming v2 changes.
* Update key/key.go
Co-authored-by: Christian Rocha <christian@rocha.is>
* Update key/key.go
Co-authored-by: Christian Rocha <christian@rocha.is>
---------
Co-authored-by: Christian Rocha <christian@rocha.is>