-
Notifications
You must be signed in to change notification settings - Fork 41
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
Two buttons to close application #121
Comments
Should work:
|
Sadly not. That and similar the system take the first key and ignore the second. |
I suspect it's because of this commit d2750f4
This should indeed work. I tested adding some logging and this is how it works for me: # open mpv
[playlistmanager] BIND KEYS F2 showplaylist
# press F2
[playlistmanager] SHOWING PLAYLIST
[playlistmanager] BIND KEYS FORCED ESC F2 closeplaylist
# press F2
[playlistmanager] CLOSING PLAYLIST
[playlistmanager] UNBINDING ESC F2 closeplaylist So the To me it sounds like your open and close functions would be somehow bound at the same time, which would cause the playlist to quickly render and then close immediately. Unfortunately I don't really have good debug messages in place, that would help debugging your situation. I made a temporary branch with the debug prints https://raw.githubusercontent.com/jonniek/mpv-playlistmanager/debug-prints/playlistmanager.lua Could you try reproducing my above debug messages:
If the above script works for you, then could you let me know your config, as there might be some other unrelated config value causing the bug. |
I works now, thanks a lot ! 👌 |
Hi, in the previous version I used F2 key to display the playlist and Escape to close this playlist. The good thing is that if I opened with F2 I could close the playlist with F2 again. So I had two keys to close the playlist. But with the latest playlistmanager.lua update I only have one key to close, the one I use in "key_closeplaylist". Is there a way to go back to the old behavior?
The text was updated successfully, but these errors were encountered: