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

index b7fa907..eedca52 100644 (file)
--- a/weibo.js
+++ b/weibo.js
@@ -23,7 +23,7 @@ function run_weibo(u, p){
         if(document.location.pathname == '/login.php'){
             
             var event = document.createEvent("UIEvents");
-            event.initUIEvent("keypress", true, true, window, 1);
+            event.initUIEvent("keydown", true, true, window, 1);
             event.keyCode = 13;
             
             console.log("runing weibo login");