golota60 / trayasen

πŸ₯• IKEA IDΓ…SEN cross-platform desktop app living in system tray. Should also work for LINAK desks
MIT License
27 stars 1 forks source link

Suggestion: hotkeys for desk positions #16

Closed falkenhawk closed 1 year ago

falkenhawk commented 1 year ago

I'd be great if positions could be changed by pressing a defined key combination. Hotkeys should work globally, system-wide.

golota60 commented 1 year ago

Thanks for the suggestion! I've been actually meaning to add that for a while, but first I want to improve the stability of the app across systems - this will be a major change so I'll try to add global hotkeys alongside it.

falkenhawk commented 1 year ago

@golota60 thank you for implementing this feature! πŸ™ I have troubles of making them work on win10. Hotkeys are being registered, but some keys or combinations with ctrl / alt / win key do not work. E.g. a hotkey for just a single key, e.g. "R" - works. "/" - works on the regular "/" key (next to right-shift), does not work on numpad-"/" key. "Shift+R", "Control+R", "Shift+/", "Control+AltGraph+/", "Control+/", "Meta+/" - those do not work

golota60 commented 1 year ago

@falkenhawk I've been quite busy this week - I'll try to fix this as soon as I get my hands on win10 PC πŸ˜„ In the meantime, you should be able to open config file manually and change the "shortcut" field according to this doc - https://www.electronjs.org/docs/latest/api/accelerator - this is electron's docs, not tauri's, but it should work exactly the same(also tauri doesn't have similar docs πŸ˜› )

falkenhawk commented 1 year ago

No problem, thanks for your commitment! I'll experiment with the values in config.