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

Function toggleShift

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

Source from the content-addressed store, hash-verified

1714 },
1715
1716 toggleShift() {
1717 const btn = document.getElementById('noVNC_toggle_shift_button');
1718 if (btn.classList.contains("noVNC_selected")) {
1719 UI.sendKey(KeyTable.XK_Shift_L, "ShiftLeft", false);
1720 btn.classList.remove("noVNC_selected");
1721 } else {
1722 UI.sendKey(KeyTable.XK_Shift_L, "ShiftLeft", true);
1723 btn.classList.add("noVNC_selected");
1724 }
1725 },
1726
1727 toggleWindows() {
1728 const btn = document.getElementById('noVNC_toggle_windows_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