fix #40556: focus lost after change duration of note on offbeat
Merge pull request #1532 from MarcSabatella/40556-offbeat-focus

fix #40556: focus lost after change duration of note on offbeat