mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUACAMOLE-352: Hide input sink field in bottom-left corner for sake of input method dialogs.
This commit is contained in:
@@ -1440,13 +1440,16 @@ Guacamole.Keyboard.InputSink = function InputSink() {
|
|||||||
* @type {Element}
|
* @type {Element}
|
||||||
*/
|
*/
|
||||||
var field = document.createElement('textarea');
|
var field = document.createElement('textarea');
|
||||||
field.style.position = 'fixed';
|
field.style.position = 'fixed';
|
||||||
field.style.outline = 'none';
|
field.style.outline = 'none';
|
||||||
field.style.border = 'none';
|
field.style.border = 'none';
|
||||||
field.style.width = '10px';
|
field.style.height = '0';
|
||||||
field.style.height = '10px';
|
field.style.width = '0';
|
||||||
field.style.left = '-10px';
|
field.style.left = '0';
|
||||||
field.style.top = '-10px';
|
field.style.bottom = '0';
|
||||||
|
field.style.resize = 'none';
|
||||||
|
field.style.background = 'transparent';
|
||||||
|
field.style.color = 'transparent';
|
||||||
|
|
||||||
// Keep field clear when modified via normal keypresses
|
// Keep field clear when modified via normal keypresses
|
||||||
field.addEventListener("keypress", function clearKeypress(e) {
|
field.addEventListener("keypress", function clearKeypress(e) {
|
||||||
|
Reference in New Issue
Block a user