From 7dae37eeac636b3928833bbac159c5e911de81be Mon Sep 17 00:00:00 2001 From: couscous3 <33840325+couscous3@users.noreply.github.com> Date: Mon, 20 Nov 2017 18:25:56 +0100 Subject: 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 --- client/components/cards/cardDetails.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/components') 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(); } }, -- cgit v1.2.3-1-g7c22