diff --git a/src/menu/editor.js b/src/menu/editor.js index 6daaa51..13bb9d6 100644 --- a/src/menu/editor.js +++ b/src/menu/editor.js @@ -130,6 +130,12 @@ const handleKeyPress = wrappedAction((ev) => { case isNote(inputKey) && !ctrl && !shift: notation.note = inputKey; break; + case inputKey === "(" && !ctrl: + notation.note = N.crackerOpen; + break; + case inputKey === ")" && !ctrl: + notation.note = N.crackerClose; + break; case inputKey === "-" && !ctrl && !shift: notation.note = N.extend; break; diff --git a/src/util/notation.js b/src/util/notation.js index 50cc285..e5a889e 100644 --- a/src/util/notation.js +++ b/src/util/notation.js @@ -11,6 +11,8 @@ const notations = { si: "7", extend: "─", separator: "│", + crackerOpen: "(", + crackerClose: ")" }; const notes = [ notations.zero,