From: Michael Jumper Date: Sun, 25 Mar 2012 20:36:01 +0000 (-0700) Subject: Assume space cap if blank (blank caps would otherwise not render, and IE trims the... X-Git-Url: http://git.alex.org.uk Assume space cap if blank (blank caps would otherwise not render, and IE trims the contents of XML tags, which breaks the OSK spacebar). --- diff --git a/src/main/resources/oskeyboard.js b/src/main/resources/oskeyboard.js index dc5833a..1f8c083 100644 --- a/src/main/resources/oskeyboard.js +++ b/src/main/resources/oskeyboard.js @@ -244,6 +244,10 @@ Guacamole.OnScreenKeyboard = function(url) { // Get content of key cap var content = e.textContent || e.text; + + // If read as blank, assume cap is a single space. + if (content.length == 0) + content = " "; // Get keysym var real_keysym = null;