Commit 4056c16
committed
Fix add multiple harmony using space merged in undo stack
If you created multiple harmonies by using the Space key to navigate between them, the creation of all these harmonies would be merged in one big undo command.
This is because `endEdit` of the previous harmony would not be called until `NotationInteraction` calls `startEditText` with the next harmony, so the addition of the new harmony happend before the `endEdit` of the previous harmony. Therefore, the creation of this new harmony would be merged into the editing of the previous harmony. This is fixed by calling `endEditText` before creating the next one.1 parent 25532f2 commit 4056c16
1 file changed
+5
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7001 | 7001 | | |
7002 | 7002 | | |
7003 | 7003 | | |
7004 | | - | |
| 7004 | + | |
| 7005 | + | |
| 7006 | + | |
7005 | 7007 | | |
7006 | 7008 | | |
7007 | 7009 | | |
| |||
7015 | 7017 | | |
7016 | 7018 | | |
7017 | 7019 | | |
| 7020 | + | |
7018 | 7021 | | |
7019 | 7022 | | |
7020 | 7023 | | |
7021 | 7024 | | |
7022 | | - | |
7023 | | - | |
7024 | | - | |
7025 | | - | |
7026 | | - | |
7027 | | - | |
| 7025 | + | |
7028 | 7026 | | |
7029 | 7027 | | |
7030 | 7028 | | |
| |||
7041 | 7039 | | |
7042 | 7040 | | |
7043 | 7041 | | |
7044 | | - | |
7045 | | - | |
7046 | | - | |
7047 | | - | |
7048 | | - | |
7049 | | - | |
7050 | 7042 | | |
7051 | 7043 | | |
7052 | 7044 | | |
| |||
0 commit comments