Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small backspace behaviour improvement #391

Merged
merged 4 commits into from
Aug 4, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions build/codex-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14677,9 +14677,12 @@ var BlockEvents = function (_Module) {
/** If current Block is empty just remove this Block */
if (this.Editor.BlockManager.currentBlock.isEmpty) {
this.Editor.BlockManager.removeBlock();
if (this.Editor.Caret.navigatePrevious(true)) {
this.Editor.Toolbar.close();
}
/**
* After BlockManager removes the Block (which is current now),
* pointer that references to the current Block, now points to the Next
*/
this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock);
this.Editor.Toolbar.close();
return;
}
if (!canMergeBlocks) {
Expand Down
2 changes: 1 addition & 1 deletion build/codex-editor.js.map

Large diffs are not rendered by default.

Loading