app,io/key: introduce keys for directional navigation

This change adds key.NameUp/Down/Left/Right and maps the Android TV
remote directional keys to them. As a side-effect a key.InputOp can
now receive directional keys (and block their focus movement).

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-04-14 17:26:57 +02:00
parent d37197f45b
commit ad7c1eb78d
3 changed files with 23 additions and 19 deletions
+4
View File
@@ -219,6 +219,10 @@ const (
NameF10 = "F10"
NameF11 = "F11"
NameF12 = "F12"
NameUp = "Up"
NameDown = "Down"
NameLeft = "Left"
NameRight = "Right"
)
// Contain reports whether m contains all modifiers