small fix
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -50,11 +50,11 @@ jobs:
|
||||
rm -rf gh-pages/docs/references
|
||||
mkdir -p gh-pages/docs/references
|
||||
|
||||
- name: Generate Documentation
|
||||
run: |
|
||||
lua tools/generate-docs.lua
|
||||
#- name: Generate Documentation
|
||||
# run: |
|
||||
# lua tools/generate-docs.lua
|
||||
|
||||
cp -r build_docs/docs/references/* gh-pages/docs/references/
|
||||
# cp -r build_docs/docs/references/* gh-pages/docs/references/
|
||||
|
||||
# Step 5: Deploy Documentation
|
||||
- name: Deploy Documentation
|
||||
|
||||
@@ -95,7 +95,7 @@ end
|
||||
--- @param key number The key that was pressed
|
||||
--- @return boolean handled Whether the event was handled
|
||||
--- @protected
|
||||
function Input:key(key)
|
||||
function Input:key(key, held)
|
||||
if not self.get("focused") then return false end
|
||||
local pos = self.get("cursorPos")
|
||||
local text = self.get("text")
|
||||
@@ -127,7 +127,7 @@ function Input:key(key)
|
||||
|
||||
local relativePos = self.get("cursorPos") - self.get("viewOffset")
|
||||
self:setCursor(relativePos, 1, true, self.get("cursorColor") or self.get("foreground"))
|
||||
VisualElement.key(self, key)
|
||||
VisualElement.key(self, key, held)
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user