瀏覽代碼

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
couscous3 7 年之前
父節點
當前提交
7dae37eeac
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/cards/cardDetails.js

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