From 65c56970cb5b5e365e2e43bd025c5d2fe3f987a8 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 16 May 2014 13:48:47 -0700 Subject: [PATCH] GUAC-692: Replace magic numbers with constants. --- .../src/main/webapp/scripts/client-ui.js | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/guacamole/src/main/webapp/scripts/client-ui.js b/guacamole/src/main/webapp/scripts/client-ui.js index 81212aee3..8b3a3a3cf 100644 --- a/guacamole/src/main/webapp/scripts/client-ui.js +++ b/guacamole/src/main/webapp/scripts/client-ui.js @@ -198,6 +198,8 @@ GuacUI.Client = { "KEYBOARD_AUTO_RESIZE_INTERVAL" : 30, /* milliseconds */ "RECONNECT_PERIOD" : 15, /* seconds */ + "TEXT_INPUT_PADDING" : 128, /* characters */ + "TEXT_INPUT_PADDING_CODEPOINT" : 0x200B, /* Main application area */ @@ -2066,13 +2068,32 @@ GuacUI.Client.attach = function(guac) { for (i=0; i