MCPcopy
hub / github.com/playcanvas/engine / press

Function press

tests/input/test_keyboard.js:27–35  ·  view source on GitHub ↗
(keyCode)

Source from the content-addressed store, hash-verified

25}
26
27function press(keyCode) {
28 simulate(document.body, 'keydown', {
29 keyCode: keyCode
30 });
31
32 simulate(document.body, 'keypress', {
33 keyCode: keyCode
34 });
35}
36
37function pressSpecialChar(keyCode) {
38 simulate(document.body, 'keydown', {

Callers 2

pressAndHoldFunction · 0.85
test_keyboard.jsFile · 0.85

Calls 1

simulateFunction · 0.85

Tested by

no test coverage detected