mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 10:50:23 +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",
|
"name": "codex.editor",
|
||||||
"version": "2.7.28",
|
"version": "2.7.29",
|
||||||
"description": "CodeX Editor. Native JS, based on API and Open Source",
|
"description": "CodeX Editor. Native JS, based on API and Open Source",
|
||||||
"main": "dist/codex-editor.js",
|
"main": "dist/codex-editor.js",
|
||||||
"types": "./types/index.d.ts",
|
"types": "./types/index.d.ts",
|
||||||
|
|
|
@ -203,14 +203,14 @@ export default class BlockEvents extends Module {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Copy Blocks before removing */
|
||||||
|
if (currentBlock.selected || BlockManager.currentBlock.isEmpty) {
|
||||||
/**
|
/**
|
||||||
* Prevent default copy
|
* Prevent default copy
|
||||||
* Remove "decline sound" on macOS
|
* Remove "decline sound" on macOS
|
||||||
*/
|
*/
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
/** Copy Blocks before removing */
|
|
||||||
if (currentBlock.selected || BlockManager.currentBlock.isEmpty) {
|
|
||||||
BlockSelection.copySelectedBlocks();
|
BlockSelection.copySelectedBlocks();
|
||||||
|
|
||||||
if (BlockSelection.allBlocksSelected) {
|
if (BlockSelection.allBlocksSelected) {
|
||||||
|
|
Loading…
Reference in a new issue