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

Function syncKeyEvent

front/include/keyboard.js:126–135  ·  view source on GitHub ↗
(evt, down)

Source from the content-addressed store, hash-verified

124 return result;
125 }
126 function syncKeyEvent(evt, down) {
127 var obj = getKeysym(evt);
128 var keysym = obj ? obj.keysym : null;
129
130 // first, apply the event itself, if relevant
131 if (keysym !== null && state[keysym] !== undefined) {
132 state[keysym] = down;
133 }
134 return sync(evt, keysym);
135 }
136
137 return {
138 // sync on the appropriate keyboard event

Callers 1

ModifierSyncFunction · 0.85

Calls 2

getKeysymFunction · 0.85
syncFunction · 0.85

Tested by

no test coverage detected