MuseScore
MuseScore copied to clipboard
Fix 12222: Enter and Esc keys now work with insert measures dialog
Resolves: #12222
-
Added keypress listener for when enter/return/esc are pressed while input is focused and called the respective functions for each key.
-
Added
okClick()
function to reduce code copying, and addedcancelClick()
to pair with it. -
[x] I signed the CLA
-
[x] The title of the PR describes the problem it addresses
-
[x] Each commit's message describes its purpose and effects, and references the issue it resolves
-
[x] If changes are extensive, there is a sequence of easily reviewable commits
-
[x] The code in the PR follows the coding rules
-
[x] There are no unnecessary changes
-
[x] The code compiles and runs on my machine, preferably after each commit individually
-
[ ] I created a unit test or vtest to verify the changes I made (if applicable)