Thank you for your reply, Werner. I believe that MuseScore::changeState() does the right job as it is now: if an action is not active in the current MuseScore state, it is correct to disable it.
The points I am stuck with are two: 1) This is general: if an action A is inserted in a toolbar, it cannot share its shortcut(s) with another action B, even A states and B states are disjoint. This is probably a Qt thing, but it is strange that it is triggered by listing an action in MuseScore::enableInputToolbar(); even more because this function is NOT executed in case of conflict: QAction::eventFilter triggers in sometime earlier and stops the action processing before MuseScore is involved. 2) This is more specific: lasconic and I, we thought to make TAB note input easier by 'splitting' "pad-note-..." actions in non-TAB and TAB versions, making available the simple digit keys for TAB fret input (as they are by far the most 'obvious' choice for TAB users). We didn't think that, once toolbar-linked action(s) are no longer enabled in a given state, their toolbar button(s) are also disabled and then the input toolbar would become useless. This is something which has to be re-thought. I don't know if there are ways around those two points; I thought of dynamically replacing shortcuts in the actions involved when state changes, but this would require a lot of ad hoc solutions and would probably make things even more complex. Thanks, Maurizio Werner Schweer wrote > The actions are enabled depending on state in musescore.cpp: > MuseScore::changeState(...). > I will have a closer look at it tomorrow. -- View this message in context: http://dev-list.musescore.org/Help-with-shorcuts-tp7577975p7577979.html Sent from the MuseScore Developer mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ Mscore-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mscore-developer
