slidev-addon-python-runner icon indicating copy to clipboard operation
slidev-addon-python-runner copied to clipboard

Editing the code should not pass events to slidev

Open peekxc opened this issue 3 months ago • 1 comments

Shortcut keys are passed as-is if you actually try to edit the code. These should be prevented.

For example, the d key by default toggle the presentation between light and dark mode, thus if you enter d while editing code live during the presentation, the whole slide deck will switch between light and dark. Same goes for any shortcut key, like f for full screen.

peekxc avatar Oct 17 '25 15:10 peekxc

Does this happen in Slidev without this addon? For example,

```ts {monaco-run}
testtest
```

and

```ts {monaco}
testtest
```

kermanx avatar Oct 17 '25 15:10 kermanx