MCPcopy Create free account
hub / github.com/InstantWebP2P/peer-vnc / syncKey

Function syncKey

front/include/keyboard.js:95–97  ·  view source on GitHub ↗
(keysym)

Source from the content-addressed store, hash-verified

93 function sync(evt, keysym) {
94 var result = [];
95 function syncKey(keysym) {
96 return {keysym: keysyms.lookup(keysym), type: state[keysym] ? 'keydown' : 'keyup'};
97 }
98
99 if (evt.ctrlKey !== undefined &&
100 evt.ctrlKey !== state[XK_Control_L] && keysym !== XK_Control_L) {

Callers 1

syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected