Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ソング:macOSでのピッチ編集結果削除の操作をcommandキーを押しながら左クリックに変更 #2013

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ import { v4 as uuidv4 } from "uuid";
import ContextMenu, {
ContextMenuItemData,
} from "@/components/Menu/ContextMenu.vue";
import { isMac } from "@/type/preload";
import { useStore } from "@/store";
import { Note, SequencerEditTarget } from "@/store/type";
import {
Expand Down Expand Up @@ -1055,16 +1054,8 @@ const onMouseDown = (event: MouseEvent) => {
store.dispatch("DESELECT_ALL_NOTES");
}
} else if (editTarget.value === "PITCH") {
if (isMac) {
// Macの場合、左ボタンでDRAW、右ボタンでERASE
if (mouseButton === "LEFT_BUTTON") {
startPreview(event, "DRAW_PITCH");
} else if (mouseButton === "RIGHT_BUTTON") {
startPreview(event, "ERASE_PITCH");
}
} else if (mouseButton === "LEFT_BUTTON") {
// Mac以外の場合、左ボタンでDRAW、左ボタン+CtrlでERASE
if (event.ctrlKey) {
if (mouseButton === "LEFT_BUTTON") {
if (isOnCommandOrCtrlKeyDown(event)) {
startPreview(event, "ERASE_PITCH");
} else {
startPreview(event, "DRAW_PITCH");
Expand Down
Loading