mirror of
https://github.com/codex-team/editor.js
synced 2024-06-18 13:45:20 +02:00
Prevent CMX+X only when block selected by editor (#596)
This commit is contained in:
parent
fc3e146764
commit
67d557120c
12
dist/codex-editor.js
vendored
12
dist/codex-editor.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "codex.editor",
|
||||
"version": "2.7.28",
|
||||
"version": "2.7.29",
|
||||
"description": "CodeX Editor. Native JS, based on API and Open Source",
|
||||
"main": "dist/codex-editor.js",
|
||||
"types": "./types/index.d.ts",
|
||||
|
|
|
@ -203,14 +203,14 @@ export default class BlockEvents extends Module {
|
|||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent default copy
|
||||
* Remove "decline sound" on macOS
|
||||
*/
|
||||
event.preventDefault();
|
||||
|
||||
/** Copy Blocks before removing */
|
||||
if (currentBlock.selected || BlockManager.currentBlock.isEmpty) {
|
||||
/**
|
||||
* Prevent default copy
|
||||
* Remove "decline sound" on macOS
|
||||
*/
|
||||
event.preventDefault();
|
||||
|
||||
BlockSelection.copySelectedBlocks();
|
||||
|
||||
if (BlockSelection.allBlocksSelected) {
|
||||
|
|
Loading…
Reference in a new issue