Skip to content

Commit

Permalink
Fix #341
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Apr 17, 2015
1 parent f45340f commit ac2285e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/keyboard.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ class Keyboard
@toolbar.setActive(format, value) if @toolbar?

_initEnter: ->
this.addHotkey(dom.KEYS.ENTER, (range, hotkey) =>
keys = [
{ key: dom.KEYS.ENTER }
{ key: dom.KEYS.ENTER, shiftKey: true }
]
this.addHotkey(keys, (range, hotkey) =>
return true unless range?
[line, offset] = @quill.editor.doc.findLineAt(range.start)
[leaf, offset] = line.findLeafAt(offset)
Expand Down

0 comments on commit ac2285e

Please sign in to comment.