mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-13 06:49:48 +08:00
fix(editor): 源代码编辑器保存快捷键阻止冒泡
This commit is contained in:
parent
359fc5fdc6
commit
2134d92d54
@ -113,6 +113,7 @@ export default defineComponent({
|
||||
codeEditor.value.addEventListener('keydown', (e) => {
|
||||
if (e.keyCode === 83 && (navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey)) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
emit('save', getEditorValue());
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user