migrated keyboard support for piano

pull/95/head
jmoenig 2020-03-04 11:45:19 +01:00
rodzic b41e08fcb4
commit 049e4fca43
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -3559,14 +3559,14 @@ PianoKeyMorph.prototype.mouseEnter = function () {
if (piano) {
piano.unselectAllItems();
piano.selection = this;
piano.world.keyboardReceiver = piano;
piano.world.keyboardFocus = piano;
piano.hasFocus = true;
}
this.label.children[0].hide();
this.userState = 'highlight';
this.rerender();
this.feedback.text = this.labelString[1];
this.feedback.fixLayout(); // +++
this.feedback.fixLayout();
this.note.play(soundType);
setTimeout(
function () {