small fix

This commit is contained in:
Robert Jelic
2025-04-11 22:37:24 +02:00
parent dae70caa59
commit 8830ab6de6
3 changed files with 8 additions and 8 deletions

View File

@@ -332,9 +332,9 @@ end
--- @shortDescription Handles a key event
--- @param key number The key that was pressed
--- @protected
function VisualElement:key(key)
function VisualElement:key(key, held)
if(self.get("focused"))then
self:fireEvent("key", key)
self:fireEvent("key", key, held)
end
end