fix: correct reference to parent page in keyboard toggle event
This commit is contained in:
@@ -287,7 +287,7 @@ local function buildMainPage()
|
|||||||
eventHandler = function(self, event)
|
eventHandler = function(self, event)
|
||||||
if event.type == 'mouse_click' then
|
if event.type == 'mouse_click' then
|
||||||
showKeyboard = not showKeyboard
|
showKeyboard = not showKeyboard
|
||||||
local page = self:getPage()
|
local page = self.parent
|
||||||
if showKeyboard then
|
if showKeyboard then
|
||||||
UI.Window.enable(page.keyboard)
|
UI.Window.enable(page.keyboard)
|
||||||
page.keyboard:draw()
|
page.keyboard:draw()
|
||||||
|
|||||||
Reference in New Issue
Block a user