summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorcouscous3 <33840325+couscous3@users.noreply.github.com>2017-11-20 18:25:56 +0100
committerGitHub <noreply@github.com>2017-11-20 18:25:56 +0100
commit7dae37eeac636b3928833bbac159c5e911de81be (patch)
tree4566824820251e6db3e1801f5147c326cd490d9a /client
parentdfd0b2194746208c85b16fd485e7ca6f0cc34b57 (diff)
downloadwekan-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
Diffstat (limited to 'client')
-rw-r--r--client/components/cards/cardDetails.js2
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();
}
},