Skip to content

Commit

Permalink
Support for string array command syntax in JSON configuration file (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
verygoodlee authored May 24, 2024
1 parent ae77f77 commit f833fff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inputevent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ function InputEvent:emit(event)
event = "click"
end

if type(self.on[event]) == "table" then
self.on[event] = table.concat(self.on[event], " ")
end

local cmd = self.on[event]
if not cmd or cmd == "" then
return
Expand Down

0 comments on commit f833fff

Please sign in to comment.