Commit 590cf78
Enter lyric melisma with the underscore key on non-US keyboards
A lyric melisma is entered with the underscore character. Its default
shortcut is Shift+-, which only yields '_' on US-ANSI keyboards. On
layouts where '_' is a dedicated key (e.g. Japanese JIS on macOS) or is
produced by a different combination (AZERTY, QWERTZ, ...), the shortcut
layer never routes the underscore key to the add-melisma action, so a
melisma cannot be entered at all.
Handle the underscore key directly in the notation view while editing
lyrics: Key_Underscore with no modifiers is claimed in
shortcutOverrideEvent() and dispatched to add-melisma in keyPressEvent(),
bypassing the keyboard-layout-dependent shortcut path. The dispatch is
deferred to the next event-loop turn so add-melisma's edit teardown does
not run while the key event is still being delivered. Shift+- keeps
working on US layouts, and non-lyrics text editing is unaffected.
Refs #14914
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 50a5726 commit 590cf78
1 file changed
Lines changed: 25 additions & 3 deletions
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
1451 | 1457 | | |
1452 | 1458 | | |
1453 | 1459 | | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
1454 | 1467 | | |
1455 | 1468 | | |
1456 | 1469 | | |
| |||
1475 | 1488 | | |
1476 | 1489 | | |
1477 | 1490 | | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1481 | 1503 | | |
1482 | 1504 | | |
1483 | 1505 | | |
| |||
0 commit comments