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
This commit is contained in:
couscous3 2017-11-20 18:25:56 +01:00 committed by GitHub
parent dfd0b21947
commit 7dae37eeac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
},