summaryrefslogtreecommitdiffstats
path: root/client/components/forms/inlinedform.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/forms/inlinedform.js')
-rw-r--r--client/components/forms/inlinedform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/forms/inlinedform.js b/client/components/forms/inlinedform.js
index b8442a28..e4331892 100644
--- a/client/components/forms/inlinedform.js
+++ b/client/components/forms/inlinedform.js
@@ -76,7 +76,7 @@ BlazeComponent.extendComponent({
// Pressing Ctrl+Enter should submit the form
'keydown form textarea': function(evt) {
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
- $(evt.currentTarget).parents('form:first').submit();
+ this.find('button[type=submit]').click();
}
},