mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Keyboard: properly handle keyboard layout height change
The japanese keyboard being taller than the others, when switching to/from it from/to another layout: - re-init InputDialog for proper sizing and positionning - refresh the whole screen, to remove any trace of a previous taller keyboard Also add calls to :free() here and there to free keyboard keys' TextWidgets' XText C objects without waiting for GC.
This commit is contained in:
@@ -406,6 +406,13 @@ function InputText:onCloseKeyboard()
|
||||
UIManager:close(self.keyboard)
|
||||
end
|
||||
|
||||
function InputText:onCloseWidget()
|
||||
if self.keyboard then
|
||||
self.keyboard:free()
|
||||
end
|
||||
self:free()
|
||||
end
|
||||
|
||||
function InputText:getTextHeight()
|
||||
return self.text_widget:getTextHeight()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user