diff --git a/console/templates/console-base.html b/console/templates/console-base.html
index e2fa016..c7ea6d4 100644
--- a/console/templates/console-base.html
+++ b/console/templates/console-base.html
@@ -66,30 +66,30 @@
-
-
+
+
+
+/nav>
{% block content %}{% endblock %}
diff --git a/console/templates/console-spice-full.html b/console/templates/console-spice-full.html
index 450369e..695942f 100644
--- a/console/templates/console-spice-full.html
+++ b/console/templates/console-spice-full.html
@@ -188,31 +188,7 @@
resize_helper(sc);
}
- function sendCtrlAltFN(f) {
- if (sc && sc.inputs && sc.inputs.state === "ready"){
- var keys_code=[KEY_F1,KEY_F2,KEY_F3,KEY_F4,KEY_F5,KEY_F6,KEY_F7,KEY_F8,KEY_F9,KEY_F10,KEY_F11,KEY_F12];
-
- if (keys_code[f]==undefined) {
- return;
- }
- var key = new SpiceMsgcKeyDown();
- var msg = new SpiceMiniData();
-
- update_modifier(true, KEY_LCtrl, sc);
- update_modifier(true, KEY_Alt, sc);
-
- key.code = keys_code[f];
- msg.build_msg(SPICE_MSGC_INPUTS_KEY_DOWN, key);
- sc.inputs.send_msg(msg);
- msg.build_msg(SPICE_MSGC_INPUTS_KEY_UP, key);
- sc.inputs.send_msg(msg);
-
- if(Ctrl_state == false) update_modifier(false, KEY_LCtrl, sc);
- if(Alt_state == false) update_modifier(false, KEY_Alt, sc);
- }
- }
-
- function fullscreen() {
+ function fullscreen() {
var screen=document.getElementById('spice-screen?');
if(screen.requestFullscreen) {
screen.requestFullscreen();
@@ -236,7 +212,19 @@
});
*/
document.getElementById("fullscreen_button").addEventListener('click', fullscreen);
-
+ document.getElementById('ctrlaltdel').addEventListener('click', sendCtrlAltDel);
+ document.getElementById('ctrlaltf1').addEventListener('click', function(){sendCtrlAltFN(0);});
+ document.getElementById('ctrlaltf2').addEventListener('click', function(){sendCtrlAltFN(1);});
+ document.getElementById('ctrlaltf3').addEventListener('click', function(){sendCtrlAltFN(2);});
+ document.getElementById('ctrlaltf4').addEventListener('click', function(){sendCtrlAltFN(3);});
+ document.getElementById('ctrlaltf5').addEventListener('click', function(){sendCtrlAltFN(4);});
+ document.getElementById('ctrlaltf6').addEventListener('click', function(){sendCtrlAltFN(5);});
+ document.getElementById('ctrlaltf7').addEventListener('click', function(){sendCtrlAltFN(6);});
+ document.getElementById('ctrlaltf8').addEventListener('click', function(){sendCtrlAltFN(7);});
+ document.getElementById('ctrlaltf9').addEventListener('click', function(){sendCtrlAltFN(8);});
+ document.getElementById('ctrlaltf10').addEventListener('click', function(){sendCtrlAltFN(9);});
+ document.getElementById('ctrlaltf11').addEventListener('click', function(){sendCtrlAltFN(10);});
+ document.getElementById('ctrlaltf12').addEventListener('click', function(){sendCtrlAltFN(11);});
connect();
{% endblock %}
\ No newline at end of file
diff --git a/console/templates/console-spice-lite.html b/console/templates/console-spice-lite.html
index f718a5c..4d4c4e3 100644
--- a/console/templates/console-spice-lite.html
+++ b/console/templates/console-spice-lite.html
@@ -210,30 +210,6 @@
}
}
- function sendCtrlAltFN(f) {
- if (sc && sc.inputs && sc.inputs.state === "ready"){
- var keys_code=[KEY_F1,KEY_F2,KEY_F3,KEY_F4,KEY_F5,KEY_F6,KEY_F7,KEY_F8,KEY_F9,KEY_F10,KEY_F11,KEY_F12];
-
- if (keys_code[f]==undefined) {
- return;
- }
- var key = new SpiceMsgcKeyDown();
- var msg = new SpiceMiniData();
-
- update_modifier(true, KEY_LCtrl, sc);
- update_modifier(true, KEY_Alt, sc);
-
- key.code = keys_code[f];
- msg.build_msg(SPICE_MSGC_INPUTS_KEY_DOWN, key);
- sc.inputs.send_msg(msg);
- msg.build_msg(SPICE_MSGC_INPUTS_KEY_UP, key);
- sc.inputs.send_msg(msg);
-
- if(Ctrl_state == false) update_modifier(false, KEY_LCtrl, sc);
- if(Alt_state == false) update_modifier(false, KEY_Alt, sc);
- }
- }
-
function fullscreen() {
var screen=document.getElementById('spice-screen');
if(screen.requestFullscreen) {
@@ -259,6 +235,19 @@
});
*/
document.getElementById("fullscreen_button").addEventListener('click', fullscreen);
+ document.getElementById('ctrlaltdel').addEventListener('click', sendCtrlAltDel);
+ document.getElementById('ctrlaltf1').addEventListener('click', function(){sendCtrlAltFN(0);});
+ document.getElementById('ctrlaltf2').addEventListener('click', function(){sendCtrlAltFN(1);});
+ document.getElementById('ctrlaltf3').addEventListener('click', function(){sendCtrlAltFN(2);});
+ document.getElementById('ctrlaltf4').addEventListener('click', function(){sendCtrlAltFN(3);});
+ document.getElementById('ctrlaltf5').addEventListener('click', function(){sendCtrlAltFN(4);});
+ document.getElementById('ctrlaltf6').addEventListener('click', function(){sendCtrlAltFN(5);});
+ document.getElementById('ctrlaltf7').addEventListener('click', function(){sendCtrlAltFN(6);});
+ document.getElementById('ctrlaltf8').addEventListener('click', function(){sendCtrlAltFN(7);});
+ document.getElementById('ctrlaltf9').addEventListener('click', function(){sendCtrlAltFN(8);});
+ document.getElementById('ctrlaltf10').addEventListener('click', function(){sendCtrlAltFN(9);});
+ document.getElementById('ctrlaltf11').addEventListener('click', function(){sendCtrlAltFN(10);});
+ document.getElementById('ctrlaltf12').addEventListener('click', function(){sendCtrlAltFN(11);});
connect();
{% endblock %}
diff --git a/console/templates/console-vnc-full.html b/console/templates/console-vnc-full.html
index 16d38f6..6149289 100755
--- a/console/templates/console-vnc-full.html
+++ b/console/templates/console-vnc-full.html
@@ -16,7 +16,7 @@
or the fragment:
http://example.com/#host=HOST&port=PORT&encrypt=1
-->
- WebVirtCloud - noVNC
+ WebVirtCloud - noVNC
@@ -65,12 +65,26 @@
-
+
+
+
+
+
+
+
{% endblock %}
{% block content %}
-
@@ -320,4 +332,4 @@