Skip to content

Commit

Permalink
[project-s] Escキーでノートの選択を全て解除できるようにする (#1775)
Browse files Browse the repository at this point in the history
* 「ノートの選択を全て解除する」のショートカットを追加、ノート編集後に選択が解除されないように変更

* ファイルを移動して名前を変更
  • Loading branch information
sigprogramming authored Jan 28, 2024
1 parent 55a497c commit 9f01699
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,6 @@ export default defineComponent({
});
} else {
store.dispatch("UPDATE_NOTES", { notes: previewNotes.value });
store.dispatch("DESELECT_ALL_NOTES");
}
if (previewNotes.value.length === 1) {
store.dispatch("PLAY_PREVIEW_SOUND", {
Expand Down Expand Up @@ -890,7 +889,8 @@ export default defineComponent({
case "Delete":
handleNotesBackspaceOrDelete();
break;
default:
case "Escape":
store.dispatch("DESELECT_ALL_NOTES");
break;
}
};
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
PolySynth,
Sequence,
Transport,
} from "@/infrastructures/AudioRenderer";
} from "@/sing/audioRendering";
import {
getMeasureDuration,
isValidNote,
Expand Down

0 comments on commit 9f01699

Please sign in to comment.