Added in clicks to keymap.
This commit is contained in:
1 parent
09bf8bab2f
commit
612818ca05
5 files changed
+36
-35
No files matched your search
@@ -42,10 +42,10 @@ function command.get_all_valid()
|
||||
end
|
||||
|
||||
|
||||
local function perform(name)
|
||||
local function perform(name, ...)
|
||||
local cmd = command.map[name]
|
||||
if cmd and cmd.predicate() then
|
||||
cmd.perform()
|
||||
if cmd and cmd.predicate(...) then
|
||||
cmd.perform(...)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user