-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[MU4 Issue] Apply current palette element command not implemented #13281
Comments
You normally used ""? |
Sorry, I typed a backslash but GitHub ate it. Fixed now. |
@Tantacrul - also not beta-critical at all, but, for me personally, I think I miss the command more than any other single MU3 feature. An unbelievably useful productivity tool. |
I can make an attempt, if I can get a little help. I knew how things worked in MU3 but it still is a lot of trial and error for me in MU4. @wizofaus - I assume you're talking about the code here: It looks like the actual work then is done here: which looks about right to me (not that I know my way QML at all). So, it seems promising. In theory, then, all we'd need to do is make sure the command exists and calls the applyCurrentPaletteElement function. The place where the command would be to be defined, I assume, is here: And then after defining the command itself there, I'd need to register it here: That last part is the mystery to me - I have no idea what magic it would take to actually reference the applyCurrentPaletteElement function here. |
@MarcSabatella You could use the The class MuseScore/src/palette/view/paletterootmodel.cpp Lines 26 to 32 in 644cc12
In QML, there is a handler for this signal; in this handler, the relevant function in QML is called. MuseScore/src/palette/qml/MuseScore/Palette/PalettesPanel.qml Lines 62 to 68 in 644cc12
So, you can basically just copy & paste the handler registrations and fill in the correct names, action code and QML function. |
Great, that gets me started! Signals, yeah, makes sense. I'll give it a shot. BTW, the palette search command is actually defined in the palette code but I had been thinking it made sense for the apply current palette element command to be defined in notation, since that's where the focus would be on executing it and where action would actually take effect. But maybe I'll try it all here in the palette code first. |
I'd expect it to be in the Palette code - I wouldn't think the Notation code should depend on/ know about the Palette generally. |
and allow [enter] to apply first result while in palette-search area
and allow [enter] to apply first result while in palette-search area
and allow [enter] to apply first result while in palette-search area
and allow [enter] to apply first result while in palette-search area
and allow [enter] to apply first result while in palette-search area
and allow [enter] to apply first result while in palette-search area. Also update highlighting of palette cell when applying/clicking.
…lement-command Fix #13281: Implement [Apply current palette element] command
and allow [enter] to apply first result while in palette-search area. Also update highlighting of palette cell when applying/clicking.
Describe the bug
MuseScore 3 had a command "apply current palette element" to easily reapply the most recently-used palette element. This was a great usability feature and especially valuable for blind users even though it had no default shortcut. This command is missing in MU4.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The "apply current palette element" should be available, and ideally, should have a default shortcut assigned even though there was none in MU3. FWIW, I normally used "\".
Platform information
Additional context
I know there is some new functionality coming for shortcuts via the GSoC project, but on the assumption that none of the pending work for that is being targeted for 4.0, re-implementing this one command would be a big help for now.
There are a handful of other commands that were dropped from MU3, some consciously, some perhaps less so. This to me is the one most worth adding back for 4.0.
The text was updated successfully, but these errors were encountered: