Skip to content

Commit

Permalink
Merge pull request #18 from Warry/patch-1
Browse files Browse the repository at this point in the history
Fix <shift+enter>
  • Loading branch information
daviferreira committed Sep 20, 2013
2 parents e088dbd + 839da24 commit 67a5ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/medium.editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function MediumEditor(selector, options) {
};

input.onkeyup = function (e) {
if (e.keyCode === 13) {
if (e.keyCode === 13 && !e.shiftKey) {
e.preventDefault();
self.createLink(this);
}
Expand Down

0 comments on commit 67a5ba8

Please sign in to comment.