mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
io,app: route all unhandled key events to the topmost handler
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -937,6 +937,11 @@ func (w *Window) processEvent(d driver, e event.Event) bool {
|
||||
handled = false
|
||||
}
|
||||
}
|
||||
// As a sepcial case, the top-most input handler receives all unhandled
|
||||
// events.
|
||||
if e, ok := e.(key.Event); ok && !handled {
|
||||
handled = w.queue.q.QueueTopmost(e)
|
||||
}
|
||||
w.updateCursor(d)
|
||||
return handled
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user