Skip to content

Commit

Permalink
If the keyMap contains 'TAB':'indent' the removed code block was crea…
Browse files Browse the repository at this point in the history
…ting two bullet point items when indenting a LI element.

See summernote#4588
  • Loading branch information
thomass4t committed Jan 29, 2024
1 parent 59c0afc commit 424cebb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/js/module/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,6 @@ export default class Editor {
} else if (eventName) {
if (this.context.invoke(eventName) !== false) {
event.preventDefault();
// if keyMap action was invoked
if (keyName != 'ENTER') { // <--- Without this check, we get double Empty Paragraph insertion.
this.context.invoke(eventName);
}
return true;
}
} else if (key.isEdit(event.keyCode)) {
Expand Down

0 comments on commit 424cebb

Please sign in to comment.