fixed being unable to use cmd+enter on macs
This commit is contained in:
parent
f76603a071
commit
26c21e6a27
|
@ -57,7 +57,7 @@
|
|||
|
||||
$(document).on "keydown", "textarea[name=ib-answer]", (evt) ->
|
||||
iid = $(this)[0].dataset.id
|
||||
if evt.keyCode == 13 and evt.ctrlKey
|
||||
if evt.keyCode == 13 and (evt.ctrlKey or evt.metaKey)
|
||||
# trigger warning:
|
||||
$("button[name=ib-answer][data-ib-id=#{iid}]").trigger 'click'
|
||||
|
||||
|
|
Loading…
Reference in New Issue