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
Fix #275479: Master palette doesn't close on ESC #3885
Fix #275479: Master palette doesn't close on ESC #3885
Conversation
The other dialogs do not implement keyPress so it's probably not necessary to do it here. How is the master palette different from other? |
Master Palette is not a dialog. It's a widget with the Qt::Dialog flag, which means it's styled like a dialog. It also means it doesn't have the default escape = close keypress event that all dialogs have, since it inherits the keypress events of a QWidget. |
Indeed, same for synthcontrol, playpanel and mixer. The implementation of KeypressEvent should be exactly the same than in these classes then. |
6e4bab6
to
926f215
Compare
From mixer.cpp, in
I'll change the keyPressEvent code in masterpalette.cpp to match this for consistency. |
926f215
to
3e79402
Compare
While we're looking at this: I've gotten used to having to press Esc, but I still wish that Ctrl+W would close these widgets when they are open instead of the score beneath. |
@IsaacWeiss let's discuss your suggestion in the related issue. Do we have one? |
@jthistle looks like this PR leads to https://musescore.org/en/node/275694. Could you please have a look? |
I'd be surprised if it did lead to that issue, but I'll take a look anyway. |
To be honest, I didn't check it yet, but this PR looks the most suspicious :) |
I have no idea how changing masterpalette.cpp would break the start center, but I'll see if I can get ESC working. I'd blame @handrok (if anyone, sorry ;)), because their changes were added August 4th, and you were testing with the August 2nd nightly. |
Maybe :) |
No problem, I'm working on a fix for it :) |
Fixed it, made a pr: #3904 |
References: https://musescore.org/en/node/275479