weibo.js
authorChris <chris@roojs.com>
Tue, 21 Jan 2014 02:55:47 +0000 (10:55 +0800)
committerChris <chris@roojs.com>
Tue, 21 Jan 2014 02:55:47 +0000 (10:55 +0800)
weibo.js

index c1a94cb..0dd3816 100644 (file)
--- a/weibo.js
+++ b/weibo.js
@@ -25,7 +25,7 @@ function run_weibo(u, p){
             var event = document.createEvent("KeyboardEvent");
             event.keyCode = 13;
 
-            event.initEvent("keypress", false, true);
+            event.initEvent("keyup", false, true);
             event.synthetic = true;