Prevent CMX+X only when block selected by editor (#596)

This commit is contained in:
Murod Khaydarov 2019-01-17 15:07:56 +03:00 committed by GitHub
parent fc3e146764
commit 67d557120c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

12
dist/codex-editor.js vendored

File diff suppressed because one or more lines are too long

View file

@ -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",

View file

@ -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) {