From 16ab5aa194f1db643c06201f858dc9ee87e05e0c Mon Sep 17 00:00:00 2001 From: poire-z Date: Thu, 15 Jul 2021 22:03:02 +0200 Subject: [PATCH] SDL keyboard input: should go to top level widget only Avoid the typed input to be added to all InputText present on the stack: only the top one should handle it. --- frontend/device/sdl/device.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/device/sdl/device.lua b/frontend/device/sdl/device.lua index e49ceb045..9723bc887 100644 --- a/frontend/device/sdl/device.lua +++ b/frontend/device/sdl/device.lua @@ -264,7 +264,7 @@ function Device:init() self.window.left = ev.value.data1 self.window.top = ev.value.data2 elseif ev.code == SDL_TEXTINPUT then - UIManager:broadcastEvent(Event:new("TextInput", ev.value)) + UIManager:sendEvent(Event:new("TextInput", ev.value)) end end, hasClipboardText = function()