mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user