MCPcopy Index your code
hub / github.com/microsoft/SandDance / getRTLSafeKeyCode

Function getRTLSafeKeyCode

docs/app/js/sanddance-app.js:23547–23554  ·  view source on GitHub ↗
(key, theme)

Source from the content-addressed store, hash-verified

23545 (0, _mergeStyles.setRTL)(_isRTL);
23546}
23547function getRTLSafeKeyCode(key, theme) {
23548 if (theme === void 0) theme = {};
23549 if (getRTL(theme)) {
23550 if (key === (0, _keyCodes.KeyCodes).left) key = (0, _keyCodes.KeyCodes).right;
23551 else if (key === (0, _keyCodes.KeyCodes).right) key = (0, _keyCodes.KeyCodes).left;
23552 }
23553 return key;
23554}
23555
23556},{"./KeyCodes":"aP2ZH","./dom/getDocument":"bYcmK","./sessionStorage":"fPGAq","@uifabric/merge-styles":"7c43M","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"fPGAq":[function(require,module,exports) {
23557var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

getRTLFunction · 0.85

Tested by

no test coverage detected