summaryrefslogtreecommitdiff
path: root/src/ui/widget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-03 14:30:13 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-03 14:30:13 +0300
commit808ca2028981247bf697b8df5902ffe7c3e50b3f (patch)
treedcce8ff91e7ca068d00aa38517d9daa5b6766e3c /src/ui/widget.c
parent052a2c7a8a1afe4f3a7bc49481f781e4b879432e (diff)
Window: Dispatch key events only to the root with key focus
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r--src/ui/widget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 62112e86..00fe0f5f 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -879,6 +879,7 @@ iBool dispatchEvent_Widget(iWidget *d, const SDL_Event *ev) {
879 printf("[%p] %s:'%s' ate the key\n", 879 printf("[%p] %s:'%s' ate the key\n",
880 child, class_Widget(child)->name, 880 child, class_Widget(child)->name,
881 cstr_String(id_Widget(child))); 881 cstr_String(id_Widget(child)));
882 identify_Widget(child);
882 fflush(stdout); 883 fflush(stdout);
883 } 884 }
884#endif 885#endif