Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jaredreich/pell
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredreich committed Dec 5, 2018
2 parents 97e7cac + 0233850 commit d82e1b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pell.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ export const init = settings => {
settings.onChange(content.innerHTML)
}
content.onkeydown = event => {
if (event.key === 'Tab') {
event.preventDefault()
} else if (event.key === 'Enter' && queryCommandValue(formatBlock) === 'blockquote') {
if (event.key === 'Enter' && queryCommandValue(formatBlock) === 'blockquote') {
setTimeout(() => exec(formatBlock, `<${defaultParagraphSeparator}>`), 0)
}
}
Expand Down

0 comments on commit d82e1b6

Please sign in to comment.