Fix show/hide of OSK.

This commit is contained in:
Michael Jumper committed 2012-11-13 20:18:11 -08:00
1 parent a15f403492
commit 5d587373f3
3 files changed
+23 -2

No files matched your search

@@ -412,6 +412,10 @@ GuacUI.Client.OnScreenKeyboard = function() {
updateKeyboardSize,
GuacUI.Client.KEYBOARD_AUTO_RESIZE_INTERVAL);
// Resize on window resize
window.addEventListener("resize", updateKeyboardSize, true);
// Initialize size
updateKeyboardSize();
};
@@ -421,6 +425,7 @@ GuacUI.Client.OnScreenKeyboard = function() {
// Hide keyboard
document.body.removeChild(keyboard_container);
window.clearInterval(keyboard_resize_interval);
window.removeEventListener("resize", updateKeyboardSize, true);
};