fix: correct reference to parent page in keyboard toggle event

This commit is contained in:
MayaTheShy
2026-03-22 19:47:18 -04:00
parent 380289d484
commit 621902b3e8

View File

@@ -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()