Commit 8af9b691 authored by Samuel's avatar Samuel

Merge pull request #483 from fabian-z/master

Make noVNC compatible with Content Security Policies
parents 8ce27ddb 48d26b2d
...@@ -238,6 +238,7 @@ html { ...@@ -238,6 +238,7 @@ html {
position: relative; position: relative;
left: -40px; left: -40px;
z-index: -1; z-index: -1;
ime-mode: disabled;
} }
/* /*
......
...@@ -185,6 +185,7 @@ var UI; ...@@ -185,6 +185,7 @@ var UI;
$D("keyboardinput").oninput = UI.keyInput; $D("keyboardinput").oninput = UI.keyInput;
$D("keyboardinput").onblur = UI.keyInputBlur; $D("keyboardinput").onblur = UI.keyInputBlur;
$D("keyboardinput").onsubmit = function () { return false; };
$D("showExtraKeysButton").onclick = UI.showExtraKeys; $D("showExtraKeysButton").onclick = UI.showExtraKeys;
$D("toggleCtrlButton").onclick = UI.toggleCtrl; $D("toggleCtrlButton").onclick = UI.toggleCtrl;
......
...@@ -70,8 +70,7 @@ ...@@ -70,8 +70,7 @@
style for example --> style for example -->
<textarea id="keyboardinput" autocapitalize="off" <textarea id="keyboardinput" autocapitalize="off"
autocorrect="off" autocomplete="off" spellcheck="false" autocorrect="off" autocomplete="off" spellcheck="false"
mozactionhint="Enter" onsubmit="return false;" mozactionhint="Enter"></textarea>
style="ime-mode: disabled;"></textarea>
<div id="noVNC_extra_keys"> <div id="noVNC_extra_keys">
<input type="image" alt="Extra keys" src="images/showextrakeys.png" <input type="image" alt="Extra keys" src="images/showextrakeys.png"
id="showExtraKeysButton" class="noVNC_status_button"> id="showExtraKeysButton" class="noVNC_status_button">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment