Add cmd+h for hide and ctrl+space for pause/resume#108
Add cmd+h for hide and ctrl+space for pause/resume#108jpochyla merged 2 commits intojpochyla:masterfrom
Conversation
|
Hi, thanks for the contribution! While the |
|
The Lines 9 to 15 in b01ac00 What do you think about adding a "Playback" menu (like the spotify app) where all those controls are collected and assigned a shortcut? Maybe that'd be a better solution.
Could you point me to where that would go in the playback controller? I played around with keydown events in there yesterday but couldn't get anything to work. |
|
Oh, sorry, that condition in Lines 39 to 43 in b01ac00
It would go to the |
|
Alright, thanks for your help. I have reverted the changes regarding pause/resume and left only the
Okay, I will have a look and see whether I can make it work, and open a new PR if it does. |
|
Thank you! ❤️ |
This should fix #91 in parts, but has a little drawback: you need to press ctrl+space to pause/resume the song.
I could not get the application to react to a normal key even without a modifier (i.e. only pressing space or another key when the psst window is open).
If there is a way to achieve this, I'd be happy to make the according changes.
In case #103 should be implemented (ctrl+w sends druid's
command::CLOSE_WINDOW), I could add that as well.