Commit 68f239c7 authored by Aron Carroll's avatar Aron Carroll

Merge pull request #1499 from hypothesis/change-save-shortcut

Change save shortcut to meta/ctrl + enter.
parents 3e24460e c3342c31
......@@ -259,9 +259,9 @@ annotation = ['annotator', 'documentHelpers', (annotator, documentHelpers) ->
attrs.$observe 'annotationEmbedded', (value) ->
ctrl.embedded = value? and value != 'false'
# Save on Shift + Enter.
# Save on Meta + Enter or Ctrl + Enter.
elem.on 'keydown', (event) ->
if event.keyCode == 13 && event.shiftKey
if event.keyCode == 13 and (event.metaKey or event.ctrlKey)
event.preventDefault()
scope.$evalAsync ->
ctrl.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment