Skip to content

Commit

Permalink
fix sendctrlaltdel for spice console
Browse files Browse the repository at this point in the history
  • Loading branch information
catborise committed Jul 23, 2020
1 parent 6ab32e1 commit fb3ef6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions console/templates/console-spice-full.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion console/templates/console-spice-lite.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) });
Expand Down

0 comments on commit fb3ef6b

Please sign in to comment.