Commit c3342c31 authored by Randall Leeds's avatar Randall Leeds

Change save shortcut to meta/ctrl + enter

parent 6290d3d7
......@@ -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