parent
f8c4dc9723
commit
692773c5a0
1 changed files with 1 additions and 4 deletions
|
@ -24,10 +24,7 @@ keyCodeIs = (e, keyCode) ->
|
|||
$(document).on 'keydown.quick_submit', '.js-quick-submit', (e) ->
|
||||
return unless keyCodeIs(e, 13) # Enter
|
||||
|
||||
if isMac()
|
||||
return unless (e.metaKey && !e.altKey && !e.ctrlKey && !e.shiftKey)
|
||||
else
|
||||
return unless (e.ctrlKey && !e.altKey && !e.metaKey && !e.shiftKey)
|
||||
return unless (e.metaKey && !e.altKey && !e.ctrlKey && !e.shiftKey) || (e.ctrlKey && !e.altKey && !e.metaKey && !e.shiftKey)
|
||||
|
||||
e.preventDefault()
|
||||
|
||||
|
|
Loading…
Reference in a new issue