String implements [fmt.Stringer] and is quite useful for matching key events. For details, on what this returns see [Key.String].
()
| 226 | // String implements [fmt.Stringer] and is quite useful for matching key |
| 227 | // events. For details, on what this returns see [Key.String]. |
| 228 | func (k KeyReleaseMsg) String() string { |
| 229 | return Key(k).String() |
| 230 | } |
| 231 | |
| 232 | // Keystroke returns the keystroke representation of the [Key]. While less type |
| 233 | // safe than looking at the individual fields, it will usually be more |