Open li6in9muyou opened 1 year ago
App.svelte
a.js
Important stuff in a.js is gone, replaced by content of App.svelte. The "redo" shortcut will restore important stuff.
The "undo" keyboard shortcut does nothing at step 4.
Add entries to intercept the "undo" and "redo" commands in codemirror editor options, see below.
https://github.com/sveltejs/sites/blob/a7f6683a6b034359339492964ef170326a4cfb15/packages/repl/src/lib/CodeMirror.svelte#L167-L196
reproduce
App.svelte
initially and neither of the two tabs has star sign in ita.js
tab, which has "important stuff" in itactual behaviour
Important stuff in
a.js
is gone, replaced by content ofApp.svelte
. The "redo" shortcut will restore important stuff.expected behaviour
The "undo" keyboard shortcut does nothing at step 4.
possible fix
Add entries to intercept the "undo" and "redo" commands in codemirror editor options, see below.
https://github.com/sveltejs/sites/blob/a7f6683a6b034359339492964ef170326a4cfb15/packages/repl/src/lib/CodeMirror.svelte#L167-L196