1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-03-13 10:41:59 +00:00

Add missing historyKeymap

Fixes subtle copy/paste issues as the
O/S was responsible for undo/redo.
This commit is contained in:
Fred Sauer
2026-02-17 23:26:36 -08:00
parent e17da367a3
commit 7c7de905ca

View File

@@ -1,5 +1,5 @@
import { closeBrackets, deleteBracketPair } from "@codemirror/autocomplete";
import { defaultKeymap, history, indentWithTab } from "@codemirror/commands";
import { defaultKeymap, history, historyKeymap, indentWithTab } from "@codemirror/commands";
import { cpp } from "@codemirror/lang-cpp";
import { markdown } from "@codemirror/lang-markdown";
import { bracketMatching, foldGutter, indentOnInput, indentUnit } from "@codemirror/language";
@@ -169,6 +169,7 @@ export class SourceEditor implements ProjectView {
// Undo history.
history(),
keymap.of(historyKeymap),
// Code fold gutter.
foldGutter(),