Просмотр исходного кода

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 лет назад
Родитель
Сommit
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;