Skip to content

Commit

Permalink
Merge pull request summernote#4592 from HoffmannTom/fix-tab-indentati…
Browse files Browse the repository at this point in the history
…on-in-custom-keyMap

A custom keyMap containing 'TAB':'indent' created two lines on indentation
  • Loading branch information
Dennis Suitters authored Jan 30, 2024
2 parents 59c0afc + 424cebb commit 9ab26ae
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 9ab26ae

Please sign in to comment.