feat: 添加括号符号
This commit is contained in:
@@ -130,6 +130,12 @@ const handleKeyPress = wrappedAction((ev) => {
|
|||||||
case isNote(inputKey) && !ctrl && !shift:
|
case isNote(inputKey) && !ctrl && !shift:
|
||||||
notation.note = inputKey;
|
notation.note = inputKey;
|
||||||
break;
|
break;
|
||||||
|
case inputKey === "(" && !ctrl:
|
||||||
|
notation.note = N.crackerOpen;
|
||||||
|
break;
|
||||||
|
case inputKey === ")" && !ctrl:
|
||||||
|
notation.note = N.crackerClose;
|
||||||
|
break;
|
||||||
case inputKey === "-" && !ctrl && !shift:
|
case inputKey === "-" && !ctrl && !shift:
|
||||||
notation.note = N.extend;
|
notation.note = N.extend;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ const notations = {
|
|||||||
si: "7",
|
si: "7",
|
||||||
extend: "─",
|
extend: "─",
|
||||||
separator: "│",
|
separator: "│",
|
||||||
|
crackerOpen: "(",
|
||||||
|
crackerClose: ")"
|
||||||
};
|
};
|
||||||
const notes = [
|
const notes = [
|
||||||
notations.zero,
|
notations.zero,
|
||||||
|
|||||||
Reference in New Issue
Block a user