{"action":"closed","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1004","repository_url":"https://api.github.com/repos/Hammerspoon/hammerspoon","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1004/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1004/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1004/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/1004","id":179461448,"number":1004,"title":"Question - Best Practises for Hotkeys Values?","user":{"login":"latenitefilms","id":22286696,"avatar_url":"https://avatars.githubusercontent.com/u/22286696?v=3","gravatar_id":"","url":"https://api.github.com/users/latenitefilms","html_url":"https://github.com/latenitefilms","followers_url":"https://api.github.com/users/latenitefilms/followers","following_url":"https://api.github.com/users/latenitefilms/following{/other_user}","gists_url":"https://api.github.com/users/latenitefilms/gists{/gist_id}","starred_url":"https://api.github.com/users/latenitefilms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latenitefilms/subscriptions","organizations_url":"https://api.github.com/users/latenitefilms/orgs","repos_url":"https://api.github.com/users/latenitefilms/repos","events_url":"https://api.github.com/users/latenitefilms/events{/privacy}","received_events_url":"https://api.github.com/users/latenitefilms/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-27T10:59:33Z","updated_at":"2016-10-09T04:06:36Z","closed_at":"2016-10-09T04:06:36Z","body":"I've been sending my Hammerspoon script out to various people to test, and one of the things I've noticed is that I'll get back errors like:\r\n\r\n```\r\n*** ERROR: ...oon.app/Contents/Resources/extensions/hs/hotkey/init.lua:408: Invalid key: /\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t...oon.app/Contents/Resources/extensions/hs/hotkey/init.lua:23: in upvalue 'getKeycode'\r\n\t...oon.app/Contents/Resources/extensions/hs/hotkey/init.lua:189: in function 'hs.hotkey.new'\r\n\t...oon.app/Contents/Resources/extensions/hs/hotkey/init.lua:408: in method 'bind'\r\n\t/Users/Fleak/.hammerspoon/init.lua:218: in function 'loadScript'\r\n\t/Users/Fleak/.hammerspoon/init.lua:2608: in main chunk\r\n\t[C]: in function 'xpcall'\r\n\t...app/Contents/Resources/extensions/hs/_coresetup/init.lua:481: in function 'hs._coresetup.setup'\r\n\t(...tail calls...)\r\n```\r\n\r\nEven though my system is fine with:\r\n\r\n`hotkeys:bind({\"ctrl\", \"option\", \"command\"}, \"/\", function() colorBoardSelectPuck(5) end)`\r\n\r\n...it seems to cause issues on other machines. I've tried changing it to:\r\n\r\n`hotkeys:bind({\"ctrl\", \"option\", \"command\"}, hs.keycodes.map[44], function() colorBoardSelectPuck(5) end) -- /`\r\n\r\n...so hopefully that helps.\r\n\r\nHowever, I'm just curious... what's the best practise for hotkey naming if you're planning to use the script on lots of different keyboard layouts?\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"latenitefilms"}}