diff --git a/manager/display.lua b/manager/display.lua index 10f45fe..40e4ee9 100644 --- a/manager/display.lua +++ b/manager/display.lua @@ -287,7 +287,7 @@ local function buildMainPage() eventHandler = function(self, event) if event.type == 'mouse_click' then showKeyboard = not showKeyboard - local page = self:getPage() + local page = self.parent if showKeyboard then UI.Window.enable(page.keyboard) page.keyboard:draw()