From ce43efa6d33aa36d84bed44f8447188fc176ff71 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 25 Mar 2012 13:36:01 -0700 Subject: [PATCH] Assume space cap if blank (blank caps would otherwise not render, and IE trims the contents of XML tags, which breaks the OSK spacebar). --- src/main/resources/oskeyboard.js | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 1.7.10.4