Spoons icon indicating copy to clipboard operation
Spoons copied to clipboard

what is the mapping of ReloadConfiguration:bindHotkeys(mapping) ?

Open MinatoHikari opened this issue 3 years ago • 2 comments

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.

MinatoHikari avatar Nov 20 '22 00:11 MinatoHikari

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"} })

hqkhan avatar Nov 20 '22 18:11 hqkhan

{ reloadConfiguration = { {"cmd","ctrl"}, "r"} }

it works, thanks!

MinatoHikari avatar Nov 21 '22 01:11 MinatoHikari