io,app: route all unhandled key events to the topmost handler

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-02-06 17:10:21 -06:00
parent 32c6a9b10d
commit 0dba85f52e
3 changed files with 27 additions and 1 deletions
+2
View File
@@ -30,6 +30,8 @@ type InputOp struct {
Hint InputHint
// Keys is the set of keys Tag can handle. That is, Tag will only
// receive an Event if its key and modifiers are accepted by Keys.Contains.
// As a special case, the topmost (first added) InputOp handler receives all
// unhandled events.
Keys Set
}