KeyMsg represents a key event. This can be either a key press or a key release event.
| 257 | // KeyMsg represents a key event. This can be either a key press or a key |
| 258 | // release event. |
| 259 | type KeyMsg interface { |
| 260 | fmt.Stringer |
| 261 | |
| 262 | // Key returns the underlying key event. |
| 263 | Key() Key |
| 264 | } |
| 265 | |
| 266 | // Key represents a Key press or release event. It contains information about |
| 267 | // the Key pressed, like the runes, the type of Key, and the modifiers pressed. |