MCPcopy Create free account
hub / github.com/apache/cloudstack / toggleCtrl

Function toggleCtrl

systemvm/agent/noVNC/app/ui.js:1705–1714  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1703 },
1704
1705 toggleCtrl() {
1706 const btn = document.getElementById('noVNC_toggle_ctrl_button');
1707 if (btn.classList.contains("noVNC_selected")) {
1708 UI.sendKey(KeyTable.XK_Control_L, "ControlLeft", false);
1709 btn.classList.remove("noVNC_selected");
1710 } else {
1711 UI.sendKey(KeyTable.XK_Control_L, "ControlLeft", true);
1712 btn.classList.add("noVNC_selected");
1713 }
1714 },
1715
1716 toggleShift() {
1717 const btn = document.getElementById('noVNC_toggle_shift_button');

Callers

nothing calls this directly

Calls 4

sendKeyMethod · 0.80
removeMethod · 0.65
addMethod · 0.65
containsMethod · 0.45

Tested by

no test coverage detected