]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
feat(sfc-playground): prevent ctrl+s default behavior (#5066)
authorwxsm <wxsms@foxmail.com>
Sun, 12 Dec 2021 02:01:15 +0000 (10:01 +0800)
committerGitHub <noreply@github.com>
Sun, 12 Dec 2021 02:01:15 +0000 (21:01 -0500)
packages/sfc-playground/src/App.vue

index 06913b3912ddf81c6ae5f27a195de7972c698fa2..299bd0aced333e78f6479cb974071cbe90f39c62 100644 (file)
@@ -31,6 +31,8 @@ watchEffect(() => history.replaceState({}, '', store.serialize()))
 <template>
   <Header :store="store" />
   <Repl
+    @keydown.ctrl.s.prevent
+    @keydown.meta.s.prevent
     :store="store"
     :showCompileOutput="true"
     :autoResize="true"