MCPcopy
hub / github.com/aframevr/aframe / shouldCaptureKeyEvent

Function shouldCaptureKeyEvent

src/utils/index.js:299–302  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

297 * @returns {boolean} Whether the key event should be captured.
298 */
299export function shouldCaptureKeyEvent (event) {
300 if (event.metaKey) { return false; }
301 return document.activeElement === document.body;
302}
303
304/**
305 * Splits a string into an array based on a delimiter.

Callers 2

wasd-controls.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected