Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MinatoHikari opened this issue Nov 20, 2022 · 2 comments
Open

Comments

@MinatoHikari
Copy link

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.

@hqkhan
Copy link

hqkhan commented Nov 20, 2022

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

@MinatoHikari
Copy link
Author

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

it works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants