[MU4 Issue] Spin boxes won't accept keyboard input
Describe the bug
If you change the offset of an object, you should be able to reset it by entering a 0 (zero) from the keyboard in the relevant spin box. However the spin box will not accept keyboard input.
To Reproduce
- Open the attached file. spin_box_issue.zip
- Click on a fingering and click on the "Appearance" button (Properties panel)
- Change the vertical offset by dragging or using the spin control
- Now try to enter 0 (zero) in the spin box.
RESULT: The box won't accept keyboard input. Curiously, if you drag the fingering without opening the "Appearance" section, the spin box does accept keyboard input.
Expected behavior
Keyboard input to a spin box should always be accepted.
Platform information OS: Linux Mint 20.1, Arch.: x86_64, MuseScore version (64-bit): 4.0.0-3117031689, revision: github-musescore-musescore-bd3e1bb
This problem affects spin boxes of all properties. For example:
- Click on a notehead.
- Open Properties > General > "Playback".
- Click in the "Velocity" spin box. RESULT: Box accepts keyboard input, deleting, highlighting, editing etc.
- Now, with the same tab open click on another note
- Try to repeat step 3. RESULT: Cursor won't appear in spin box and no keyboard input is accepted.
I can confirm this on Linux, basically the spin boxes work only once per session with the properties window. Typing doesn't work until you clear the selection or close the Appearance button. As long as the Appearance window remains open, I can't type into it after the first note.
Windows seems better.
I can't reproduce this on macOS. I'm running macOS 11.6.8 Big Sur on a MacBook Pro 2015 (Intel).
Bump.
I can reproduce this on Linux (and it's very, very annoying) but not on Windows; so it appears to be Linux-specific.
I can confirm on Linux. And it is more general problem with Playback / Appearance popup.
If user clicks element first and then Playback, or Apearence in Properties, spin boxes do accept keyboard input.
But if Appearance, or Playback is already open and user than click new element (note, or fingering, or whatever), spin box is not accesible.