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

Method grab

systemvm/agent/noVNC/core/input/keyboard.js:270–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268 // ===== PUBLIC METHODS =====
269
270 grab() {
271 //Log.Debug(">> Keyboard.grab");
272
273 this._target.addEventListener('keydown', this._eventHandlers.keydown);
274 this._target.addEventListener('keyup', this._eventHandlers.keyup);
275
276 // Release (key up) if window loses focus
277 window.addEventListener('blur', this._eventHandlers.blur);
278
279 //Log.Debug("<< Keyboard.grab");
280 }
281
282 ungrab() {
283 //Log.Debug(">> Keyboard.ungrab");

Callers 3

viewOnlyMethod · 0.80
_negotiateServerInitMethod · 0.80
addTouchSpecificHandlersFunction · 0.80

Calls 1

addEventListenerMethod · 0.80

Tested by

no test coverage detected