summaryrefslogtreecommitdiffstats
path: root/client/components/cards/checklists.js
diff options
context:
space:
mode:
authorBrooks Becton <broabect@ut.utm.edu>2017-11-14 20:57:36 -0600
committerBrooks Becton <broabect@ut.utm.edu>2017-11-14 20:57:36 -0600
commitffb8b72b6967ffa7545d2c8e693c4606c66085a4 (patch)
tree245f703ec732eb29a55c1f5fc8131818a15b97c2 /client/components/cards/checklists.js
parent309c1d08ff2537342765d471e7b680d23cdb1aed (diff)
downloadwekan-ffb8b72b6967ffa7545d2c8e693c4606c66085a4.tar.gz
wekan-ffb8b72b6967ffa7545d2c8e693c4606c66085a4.tar.bz2
wekan-ffb8b72b6967ffa7545d2c8e693c4606c66085a4.zip
Updated comments about pressing enter on forms
Diffstat (limited to 'client/components/cards/checklists.js')
-rw-r--r--client/components/cards/checklists.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js
index c1667be9..d3a946f0 100644
--- a/client/components/cards/checklists.js
+++ b/client/components/cards/checklists.js
@@ -146,7 +146,8 @@ BlazeComponent.extendComponent({
},
pressKey(event) {
- //If user press enter key inside a form, submit it, so user doesn't have to leave keyboard to submit a form.
+ //If user press enter key inside a form, submit it
+ //Unless the user is also holding down the 'shift' key
if (event.keyCode === 13 && !event.shiftKey) {
event.preventDefault();
const $form = $(event.currentTarget).closest('form');