Hotkeys for bold/italics don't work in text boxes

Open
#35,870 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
53/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
desktop

Research direction

Reproduce on macOS in MuseScore Studio 4.7.6 by editing a score title and pressing Cmd+B; the issue does not name relevant files or tests. Trace how the shortcut is routed between the selected text box and the Add Measures action, then check whether the text formatting shortcut works without inserting a measure.

Written by the indexing model from the issue text.

Description

regression MS3 UX/interaction
Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce

On macOS, try to bold the text in your score's title with Cmd+B. It will add a measure to your score instead. For some reason, the hotkey is being processed by, I assume, the Add -> Measures -> Insert one measure at the end of score action before the thing that's selected (the text in the text box) has a chance to see and process the hotkey instead.

Supporting files, videos and screenshots

https://github.com/user-attachments/assets/41f98558-3a78-4629-94aa-3884a7cdeaf7

In which versions of MuseScore Studio is this issue present?

Video is from 4.7.6, but it's been happening for most of the 4.x series and I just never filed an issue till now. It works on a copy of MuseScore 3.4.2 I have lying around.

Regression

Yes, this used to work in MuseScore 3.x and now is broken

Operating system

macOS

Additional context

I would not be surprised if this only affects macOS. Unfortunately, my Windows install met an untimely demise in a routine Windows Update and has become a very large and expensive paperweight, so I haven't checked any other platforms.

I believe this to be different from #34605, despite the fact that they sound fairly similar. (This doesn't involve a dialog.)

Checklist
  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible
Dominant language
C++
Stars
15.5k
Forks
3.5k
Avg merge
2d 19h
Merged PRs (30d)
124

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from musescore/MuseScore

All issues in musescore/MuseScore

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.