Hatena Idea #15927

July 15th, 2007

はてなアイデア - Mac OS X, Firefox 2で、コメント記入中に漢字変換確定のつもりでリターンを押下すると、コメントが確定されてまいます。

--- HatenaStar.js~  2007-07-15 09:12:16.000000000 +0900
+++ HatenaStar.js   2007-07-15 20:06:24.000000000 +0900
@@ -514,7 +514,7 @@
                 top = Ten.Geometry.getScroll().y + 'px';
             }
         }
-        this.windowObserver = new Ten.Observer(document.body, 'onkeydown', this, 'handleEscape');
+        this.windowObserver = new Ten.Observer(document.body, 'onkeypress', this, 'handleEscape');
         this.visible = true;
     },
     handleEscape: function(e) {
@@ -1117,7 +1117,7 @@
         this.loadImage = img;
         this.hideLoadImage();
         form.appendChild(img);
-        new Ten.Observer(input,'onkeydown',this,'sendComment');
+        new Ten.Observer(input,'onkeypress',this,'sendComment');
     }
 });