Skip to content

Commit

Permalink
run clearEval to update docbar
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbicodes committed Apr 1, 2024
1 parent 89b8e89 commit 1f3c2d1
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions src/eval-region.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,48 @@ export const evalExtension =
Prec.highest(keymap.of(
[{ key: "Alt-Enter", run: evalCell },
{ key: "Mod-Enter", run: evalAtCursor },
{ key: "Shift-Enter", run: evalTopLevel }
]))
{ key: "Shift-Enter", run: evalTopLevel },
{ key: "Escape", run: clearAll },
{ key: "ArrowLeft", run: clearEval },
{ key: "ArrowRight", run: clearEval },
{ key: "ArrowUp", run: clearEval },
{ key: "ArrowDown", run: clearEval },
{ key: "Backspace", run: clearEval },
{ key: "Enter", run: clearEval },
{ key: "Tab", run: clearEval },
{ key: "Delete", run: clearEval },
{ key: "0", run: clearEval },
{ key: "1", run: clearEval },
{ key: "2", run: clearEval },
{ key: "3", run: clearEval },
{ key: "4", run: clearEval },
{ key: "5", run: clearEval },
{ key: "6", run: clearEval },
{ key: "7", run: clearEval },
{ key: "8", run: clearEval },
{ key: "9", run: clearEval },
{ key: "!", run: clearEval },
{ key: "@", run: clearEval },
{ key: "#", run: clearEval },
{ key: "$", run: clearEval },
{ key: "%", run: clearEval },
{ key: "^", run: clearEval },
{ key: "&", run: clearEval },
{ key: "*", run: clearEval },
{ key: "-", run: clearEval },
{ key: "=", run: clearEval },
{ key: "+", run: clearEval },
{ key: "/", run: clearEval },
{ key: "`", run: clearEval },
{ key: "\"", run: clearEval },
{ key: "'", run: clearEval },
{ key: ";", run: clearEval },
{ key: ":", run: clearEval },
{ key: "[", run: clearEval },
{ key: "]", run: clearEval },
{ key: "{", run: clearEval },
{ key: "}", run: clearEval },
{ key: "(", run: clearEval },
{ key: ")", run: clearEval },
{ key: "Space", run: clearEval }].concat(letterKeys)))

0 comments on commit 1f3c2d1

Please sign in to comment.