Palette takes keyboard focus when undocked
Ubuntu 14.04, GIT commit: 8c2401f
1) start MuseScore
2) undock Palette
3) click a rest in My First Score
4) double click fermata in Articulation palette
5) try the cursor keys, home, end, page up, page down, etc
Result: focus is on the Palette window, not the score. Page Up/Down are especially bothersome as they operate the worksapce control at the bottom of the palette.
Everything works as expected for me when the palette is docked.
Comments
There is similar behavior for the Inspector, although it is less clear - apparently F8 won't toggle the window if the Inspector starts off undocked. See thread referenced above.
Guess you mean http://musescore.org/en/node/45296
The same focus-grabbing also occurs with Master Palette ([Shift][F9]).
I've fixed the problem with the palette, I can make a pull request just for it if you want.
The focus grabbing in inspector will take a bit longer, but I can't seem to be able to reproduce the problem with F8.
Andrei: FWIW, I vote you do PR's separately - that way they get tested right away. And if it becomes necesasry to revert one later, it's easier.
By "focus grabbing in Inspector", do you mean, enabling "Esc" (or some other key if necessary) to return focus to the score once you've moved focus to the Inspector? My sense is, this is the next most important priority.
The F8 toggling issue I can't reproduce either, but it seems less important anyhow. Miwarre, we could use detailed instructions, probably would have to be starting from a fresh startup with the "-F" option to revert to factory settings. But I think there are other accessibility issues more important - like if we can get the menu mnemonics A-G working :-)
I vote for a separate PR for this alone too: it is by far the greatest issue I see right now (in the UI dept. at least) and I am eager to try it.
For the shortcut bringing back the focus from collateral windows to the score window (mainly the Inspector, but from "wherever" would be great), see http://musescore.org/en/node/45296#comment-206251
About the Inspector F8 matter, see http://musescore.org/en/node/45296#comment-208106
Thanks,
M.
PR for escape:
https://github.com/musescore/MuseScore/pull/1701
PR for palette:
https://github.com/musescore/MuseScore/pull/1702
@Miwarre: Thank you for the informations! :)
@Marc: I had to fix the escape problem for the PR with accessibility for Play Panel, Synthesizer and Mixer as well. I don't know if it was the changes in code, or moving from Qt 5.3 to 5.4, or from Windows 7 to 8.1, but things didn't work as well as they did back when I first made the PR. I will finish the rebase for that most likely on Friday after my exam. I want to double check it for any additional problems.
Brilliant, thanks for all your efforts!
This should be fixed in the latest sources. If not, please reopen it. The problem with F8 toggle might still be the case, but it should have a different issue report, same for the Master Palette.
From now on, if the focus somehow goes into the palette or inspector, pressing Escape should take you in the score *without* changing the selection.
IT DOES WORK! I'm a happy man!
Thanks!
M.
I'm glad! :) Miwarre , in the future please don't hold back on reports. Focus management is not very easy to maintain with MuseScore having a huge amount of widgets that can steel focus in a way that I may have not tested, so I'm also relying on these reports. Moreover, new widgets are constantly added (for example when I did the focus management the first time, the palette did not have workspaces, so the combobox is a new addition and it was the one stealing focus). Marc is very kind to let me know when a bug is reported so I can quickly fix it.
Automatically closed -- issue fixed for 2 weeks with no activity.