From 4b933476178992bd2feba85e8bcea328bb36f5cc Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 18 Dec 2017 21:47:11 -0800 Subject: [PATCH] GUACAMOLE-352: Hide input sink field in bottom-left corner for sake of input method dialogs. --- .../src/main/webapp/modules/Keyboard.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index 6874e0a07..549586787 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -1440,13 +1440,16 @@ Guacamole.Keyboard.InputSink = function InputSink() { * @type {Element} */ var field = document.createElement('textarea'); - field.style.position = 'fixed'; - field.style.outline = 'none'; - field.style.border = 'none'; - field.style.width = '10px'; - field.style.height = '10px'; - field.style.left = '-10px'; - field.style.top = '-10px'; + field.style.position = 'fixed'; + field.style.outline = 'none'; + field.style.border = 'none'; + field.style.height = '0'; + field.style.width = '0'; + field.style.left = '0'; + field.style.bottom = '0'; + field.style.resize = 'none'; + field.style.background = 'transparent'; + field.style.color = 'transparent'; // Keep field clear when modified via normal keypresses field.addEventListener("keypress", function clearKeypress(e) {