Skip to content
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 #20826 - Numpad numbers no longer work to select note duration. #315

Merged
merged 3 commits into from
Apr 29, 2013
Merged

Fix #20826 - Numpad numbers no longer work to select note duration. #315

merged 3 commits into from
Apr 29, 2013

Conversation

mgavioli
Copy link
Contributor

Fix #20826

Fixed by blocking the creation (and pooling) of QAction creation for shortcuts with multiple alternatives in different states (like the 'common' and TAB-specific variants of "pad-note-..." shortcuts).

A rather detailed description of the implementation (regarding both the original, faulty, implementation and this fix) has been added to the mscore/shortcut.h file.

See: http://musescore.org/en/node/20826

Addendum: added support for "NumPad+" qualifier in textual representations of key sequences (both in dlgs and in shortcuts.xml), removing the need for the <code> tag in shortcuts.xml.

Fixed by blocking the creation (and pooling) of QAction creation for shortcuts with multiple alternatives in different states (like the 'common' and TAB-specific variants of "pad-note-..." shortcuts)

A rather detailed description of the implementation (regarding both the original, faulty, implementation and this fix) has been added to the mscore/shortcut.h file
@lasconic
Copy link
Contributor

It works as advertised but going to Edit -> Preferences crashes MuseScore
It crashes here : https://github.com/musescore/MuseScore/blob/master/mscore/shortcut.cpp#L290

@mgavioli
Copy link
Contributor Author

Thanks for testing! Should be fixed now.

@mgavioli
Copy link
Contributor Author

UPDATE: the current implementation messes with the NumPad modifier code when saving and loading (customized) shortcuts, as QKeySequence does not supports the Qt::NumPadModifier (only QKeyEvent does).

More work in progress...

…sequences both in dlg boxes and in xml files.

Also allows to remove the <code> tag from shortcuts.xml
mgavioli added a commit that referenced this pull request Apr 29, 2013
…shortcuts

Fix #20826 - Numpad numbers no longer work to select note duration.
@mgavioli mgavioli merged commit 349d326 into musescore:master Apr 29, 2013
heuchi pushed a commit to heuchi/MuseScore that referenced this pull request Nov 13, 2013
…duration_shortcuts

Fix musescore#20826 - Numpad numbers no longer work to select note duration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants