diff options
author | couscous3 <33840325+couscous3@users.noreply.github.com> | 2017-11-20 18:25:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 18:25:56 +0100 |
commit | 7dae37eeac636b3928833bbac159c5e911de81be (patch) | |
tree | 4566824820251e6db3e1801f5147c326cd490d9a | |
parent | dfd0b2194746208c85b16fd485e7ca6f0cc34b57 (diff) | |
download | wekan-7dae37eeac636b3928833bbac159c5e911de81be.tar.gz wekan-7dae37eeac636b3928833bbac159c5e911de81be.tar.bz2 wekan-7dae37eeac636b3928833bbac159c5e911de81be.zip |
card detail: fix title editing with shift key
in firefox there is no global `event` object, therefore we should use the `evt` argument from the event handler
-rw-r--r-- | client/components/cards/cardDetails.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 3825bda8..ab062385 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -198,7 +198,7 @@ Template.editCardTitleForm.events({ 'keydown .js-edit-card-title' (evt) { // If enter key was pressed, submit the data // Unless the shift key is also being pressed - if (evt.keyCode === 13 && !event.shiftKey) { + if (evt.keyCode === 13 && !evt.shiftKey) { $('.js-submit-edit-card-title-form').click(); } }, |