Skip to content

Commit

Permalink
Merge pull request #198 from fedwiki/ward/handlesave
Browse files Browse the repository at this point in the history
prevent default for alt-s
  • Loading branch information
paul90 authored Aug 13, 2017
2 parents 0f68672 + 1698174 commit f8f30d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ textEditor = ($item, item, option={}) ->
keydownHandler = (e) ->

if (e.altKey || e.ctlKey || e.metaKey) and e.which == 83 #alt-s
e.preventDefault()
$textarea.focusout()
return false

Expand Down

0 comments on commit f8f30d5

Please sign in to comment.