mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(editor): mac下meta + v,meta + x快捷键无效
This commit is contained in:
parent
4f4ed9c61b
commit
76b8d2314a
@ -84,11 +84,11 @@ export default defineComponent({
|
||||
e.inputEvent.preventDefault();
|
||||
node.value && services?.editorService.copy(node.value);
|
||||
})
|
||||
.keyup([ctrl, 'v'], (e) => {
|
||||
.keydown([ctrl, 'v'], (e) => {
|
||||
e.inputEvent.preventDefault();
|
||||
node.value && services?.editorService.paste();
|
||||
})
|
||||
.keyup([ctrl, 'x'], (e) => {
|
||||
.keydown([ctrl, 'x'], (e) => {
|
||||
e.inputEvent.preventDefault();
|
||||
if (!node.value || isPage(node.value)) return;
|
||||
services?.editorService.copy(node.value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user