mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
fix sendctrlaltdel for spice console
This commit is contained in:
parent
6ab32e1697
commit
fb3ef6be98
2 changed files with 11 additions and 1 deletions
|
@ -160,6 +160,11 @@
|
|||
SpiceHtml5.sendCtrlAltFN(sc, f);
|
||||
return false;
|
||||
}
|
||||
|
||||
function sendCtrlAltDel() {
|
||||
SpiceHtml5.sendCtrlAltDel(sc);
|
||||
return false;
|
||||
}
|
||||
/* SPICE port event listeners
|
||||
window.addEventListener('spice-port-data', function(event) {
|
||||
// Here we convert data to text, but really we can obtain binary data also
|
||||
|
|
|
@ -186,6 +186,11 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
function sendCtrlAltDel() {
|
||||
SpiceHtml5.sendCtrlAltDel(sc);
|
||||
return false;
|
||||
}
|
||||
|
||||
/* SPICE port event listeners
|
||||
window.addEventListener('spice-port-data', function(event) {
|
||||
// Here we convert data to text, but really we can obtain binary data also
|
||||
|
@ -198,7 +203,7 @@
|
|||
});
|
||||
*/
|
||||
document.getElementById("fullscreen_button").addEventListener('click', fullscreen);
|
||||
document.getElementById('ctrlaltdel').addEventListener('click', function () { sendCtrlAltDel(sc); });
|
||||
document.getElementById('ctrlaltdel').addEventListener('click', function () { 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) });
|
||||
|
|
Loading…
Reference in a new issue