MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / removeKeyboardEvents

Function removeKeyboardEvents

wasm/reset_events.js:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19var keyboardEventsArePresent = true;
20
21var removeKeyboardEvents = function () {
22 if (keyboardEventsArePresent) {
23 window.removeEventListener("keydown", overrideKeyDown, true);
24 window.removeEventListener("keypress", GLFW.onKeyPress, true);
25 window.removeEventListener("keyup", GLFW.onKeyup, true);
26 keyboardEventsArePresent = false;
27 }
28};
29
30var addKeyboardEvents = function () {
31 if (!keyboardEventsArePresent) {

Callers 5

open_linkFunction · 0.85
showUnexpectedErrorPopupFunction · 0.85
open_files_dialog_popupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected