浏览代码

Reverting most of commit cb3e4de. The issue was not related to using keyboardinputReset.. the issue was infact a typo which was introduced in 3b8ec46. I must be too tired..

samhed 10 年之前
父节点
当前提交
1138bdd4b7
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/ui.js

+ 4 - 0
include/ui.js

@@ -961,6 +961,10 @@ var UI;
             if (!UI.rfb) return;
 
             var newValue = event.target.value;
+
+            if (!UI.lastKeyboardinput) {
+                UI.keyboardinputReset();
+            }
             var oldValue = UI.lastKeyboardinput;
 
             var newLen;