You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by vn...@apache.org on 2018/01/16 18:42:05 UTC
[19/23] guacamole-client git commit: GUACAMOLE-352: Hide input sink
field in bottom-left corner for sake of input method dialogs.
GUACAMOLE-352: Hide input sink field in bottom-left corner for sake of input method dialogs.
Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/4b933476
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/4b933476
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/4b933476
Branch: refs/heads/master
Commit: 4b933476178992bd2feba85e8bcea328bb36f5cc
Parents: 376c438
Author: Michael Jumper <mj...@apache.org>
Authored: Mon Dec 18 21:47:11 2017 -0800
Committer: Michael Jumper <mj...@apache.org>
Committed: Tue Jan 16 10:20:43 2018 -0800
----------------------------------------------------------------------
.../src/main/webapp/modules/Keyboard.js | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/4b933476/guacamole-common-js/src/main/webapp/modules/Keyboard.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js
index 6874e0a..5495867 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) {