+ // If not shown ... action depends on OSK mode.
+ else {
+
+ // If we think the platform has a native OSK, use the event target to
+ // cause it to display.
+ if (GuacamoleUI.oskMode == GuacamoleUI.OSK_MODE_NATIVE) {
+
+ // ...but use the Guac OSK if clicked again
+ GuacamoleUI.oskMode = GuacamoleUI.OSK_MODE_GUAC;
+
+ // Try to show native OSK by focusing eventTarget.
+ GuacamoleUI.eventTarget.focus();
+ return;
+
+ }
+
+ // Ensure event target is NOT focused if we are using the Guac OSK.
+ GuacamoleUI.eventTarget.blur();
+