Spoons
Spoons copied to clipboard
what is the mapping of ReloadConfiguration:bindHotkeys(mapping) ?
mapping - A table containing hotkey modifier/key details for the following items
i really can't understand how to pass param to this function
mapping = {"ctrl", "alt", "cmd","R"}
mapping = {{"ctrl", "alt", "cmd"},"R"}
these two do not work.
Hello Hikari. Looking at the docs for ReloadConfiguration. The bindHotkeys function takes in mapping which expects reloadConfiguration entry to be there.
Try something like this:
hs.loadSpoon("ReloadConfiguration")
spoon.ReloadConfiguration:bindHotkeys({ reloadConfiguration = { {"cmd","ctrl"}, "r"} })
{ reloadConfiguration = { {"cmd","ctrl"}, "r"} }
it works, thanks!