MCPcopy Create free account
hub / github.com/microsoft/SandDance / isDirectionalKeyCode

Function isDirectionalKeyCode

docs/app/js/sanddance-app.js:25304–25306  ·  view source on GitHub ↗
(which)

Source from the content-addressed store, hash-verified

25302var _a;
25303var DirectionalKeyCodes = (_a = {}, _a[(0, _keyCodes.KeyCodes).up] = 1, _a[(0, _keyCodes.KeyCodes).down] = 1, _a[(0, _keyCodes.KeyCodes).left] = 1, _a[(0, _keyCodes.KeyCodes).right] = 1, _a[(0, _keyCodes.KeyCodes).home] = 1, _a[(0, _keyCodes.KeyCodes).end] = 1, _a[(0, _keyCodes.KeyCodes).tab] = 1, _a[(0, _keyCodes.KeyCodes).pageUp] = 1, _a[(0, _keyCodes.KeyCodes).pageDown] = 1, _a);
25304function isDirectionalKeyCode(which) {
25305 return !!DirectionalKeyCodes[which];
25306}
25307function addDirectionalKeyCode(which) {
25308 DirectionalKeyCodes[which] = 1;
25309}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected