[Regression] Context menu ALWAYS broken (under Windows?)
Reported version
3.1
Priority
P0 - Critical
Type
Functional
Frequency
Many
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
Last nightly: OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.2.0.7362, revision: f2634a0
Hmm.... something weird/unexpected with the selection in context menu.
1) Load this test file: lyrics.mscz
2) Simple/Left click a syllable
3) Right-click
Unexpected result: syllable is in edit mode
And so:
4) Try to select Cut, or Copy etc.
Result: failure
- I just discovered this issue: no sure about the status, but probably critical if not more, considering the embarrassment on such basic/essential functions caused by this regression.
- Of course, same behaviour with chord symbols (and other things I guess): chords.mscz
Fix version
3.2.0
Comments
I can't reproduce on Mac checking against latest master (more recent commit f2634a03c). A recent change is that a second NORMAL click now does put text element into text editing mode. Right (or control-click) doesn't do that for me. (Also note, the right click without selecting if over the target element does generate the context menu for the element). Might be related to https://musescore.org/en/node/10986 and/or https://musescore.org/en/node/290271. Are all PC users having this issue??
I can reproduce, also on Windows. After a single click, another click on the same element - right or left - puts the element into Edit mode. It's the new ScoreView::startTextEditingOnMouseRelease() function that is kicking in, not sure why. But the line "startEditMode(textBase)" is being executed.
As far as I'm concerned it's a bug if either a second left click or a right click puts an element into Edit mode. Only double click, or right-click followed by an explicit Edit Element, should do that.
And so, the context menu is broken.
By this way: right-click on text, lyrics, chord symbols, etc., you cannot Cut/Copy/Paste/Delete
FWIW, the workaround is to press Esc or click elsewhere to leave edit mode, then it works. Or, just don't click to select the element in the first place - it's always been the case that a right-click is sufficient.
"it's always been the case that a right-click is sufficient."
Of course, but as said, right-click no longer works too.
Right-click a text, or lyrics etc, try to cut/copy/paste ou delete: failure, nothing happens
And really a bit weird to use workarounds for basic/essential features waited by a such program.
Sure, absolutely agreed. I know fixes are being investigated, but for the record, if one isn't found that is completely satisfactory. I'd favor reverting the change that caused this (the facility to allow double-click and triple-click to do interesting things once in edit mode) for 3.2 and revisiting that later.
But, for, me, right-click then cut/copy does work for me after pressing Esc.
See https://github.com/musescore/MuseScore/pull/5159
"for, me, right-click then cut/copy does work for me after pressing Esc."
Not here.
And really surprised that PRs can be merged without caring about the platform (in this case that breaks the Windows context menu)
That PR fixes is for Windows only
https://github.com/musescore/MuseScore/pull/5101 probably broke it
Realisticallly, what happens is that a PR is tested to see if does the things it is supposed to do, but sometimes it might not be noticed if it breaks something else. Probably no one understood at first that this would break the context menu, so whether it was tested on Windows or some other platform wouldn't have mattered. These things happen, I'm just glad you caught it!
To be clear, though, here is what works for me:
1) click text
2) right-click text
3) press Esc once to close context menu
4) ress Esc again to exit Edit mode, but leave text selected
5) right-click text again
6) cut or copy
It's not obvious to be sure, but it is the sort of thing one might eventually stumble on through trial and error.
See https://github.com/musescore/MuseScore/pull/5163
Fixed in branch master, commit 83891a4795
fix #291199: Problem with selection/edit mode in a broken context menu
Fixed in branch master, commit 79991b9f19
_Merge pull request #5163 from Jojo-Schmitz/#291199
fix #291199: Problem with selection/edit mode in a broken context menu_
Fixed in branch 3.2, commit fd88f3d5be
_Merge pull request #5163 from Jojo-Schmitz/#291199
fix #291199: Problem with selection/edit mode in a broken context menu_
I'm affraid this is still not fully fixed: now a single right-click without having the text selected before (via a single left-click, which is the workaround), has the copy/cut in the contect menu disabled.
Seems I missed that due to the darks scheme not being clear enough on this, see also #291233: Make the color of invalid/disabled options in the menus more distinguishable
Sorry to tell you this guys, but I can't believe you could make such a mistake before the release of 3.2.
How should I tell you this? The context menu opens with a simple right-click, which has always been the case under Windows, and MuseScore.
But it's still broken.
1) Open this file: text.mscz
2) Right-click on the text
Result: does not work as expected.... Grrr! (sorry, a bit nervous here)
you saw what I wrote above?
That is a different issue, and it is present in 3.0.5. If it had been reported before now, we could have fixed it before the 3.2 release.
Reported in the title (broken context menu) and here: https://musescore.org/en/node/291199#comment-929181
This issue is about how right click switched to edit mode. That much has been fixed. The matter of certain options being disabled if the element is not selected first is present in MuseScore 2 and all previous versions of MuseScore 3. It is certainly not a new regression, and I have never seen it reported until just now.
Ok, you are right, sorry for the direct words above! It seems that I found it tricky to untangle what was due to this specific issue (right-click/edit mode), and the changing behaviors/or rather the changing display with the single right-click.
With 2.3.2, Cut and Copy are inactive, they were active before the 3.2, and now again are greyed out.
But eg Delete, always active (among others), never works.
It seems that at least when items are active, the expected behaviour is that you can Cut or Copy or Paste or delete. For example, as it works for Selection or Edit element.
So, I close this issue, and we will have to review these behaviors in the context menu again for improve in consistence.
Automatically closed -- issue fixed for 2 weeks with no activity.