diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-02-01 17:03:59 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-02-01 17:03:59 +0200 |
commit | 7a35099fb9778d5f3656a57c74af426cfb20fba3 (patch) | |
tree | 4f2ecbaa28e4cc5407fdef3c47d3b5035ec205f6 /client | |
parent | d08bee68171a42374d121201d2e4f21d3f650a70 (diff) | |
download | wekan-7a35099fb9778d5f3656a57c74af426cfb20fba3.tar.gz wekan-7a35099fb9778d5f3656a57c74af426cfb20fba3.tar.bz2 wekan-7a35099fb9778d5f3656a57c74af426cfb20fba3.zip |
- When writing to minicard, press Shift-Enter on minicard to go to next line below,
to continue writing on same minicard 2nd line.
Thanks to bentiss!
Diffstat (limited to 'client')
-rw-r--r-- | client/components/lists/listBody.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index fdea3bae..0f5caac5 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -260,7 +260,7 @@ BlazeComponent.extendComponent({ pressKey(evt) { // Pressing Enter should submit the card - if (evt.keyCode === 13) { + if (evt.keyCode === 13 && !evt.shiftKey) { evt.preventDefault(); const $form = $(evt.currentTarget).closest('form'); // XXX For some reason $form.submit() does not work (it's probably a bug |