summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamhed <samuel@cendio.se>2015-05-19 13:34:50 +0200
committersamhed <samuel@cendio.se>2015-05-19 13:34:50 +0200
commit1138bdd4b7e400833eb9cf444ae8daf8702eae7b (patch)
tree79a098e12a681bdc5ca5a81ba1fdcce2404079a2
parentcb3e4deb7365484c58d6fc7bddd345077db2381a (diff)
downloadnovnc-1138bdd4b7e400833eb9cf444ae8daf8702eae7b.tar.gz
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..
-rw-r--r--include/ui.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui.js b/include/ui.js
index a8239c3..3e7db63 100644
--- a/include/ui.js
+++ b/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;