UNPKG

@blueprintjs/core

Version:
23 lines (22 loc) 908 B
"use strict"; /* * Copyright 2016 Palantir Technologies, Inc. All rights reserved. * * Licensed under the terms of the LICENSE file distributed with this project. */ Object.defineProperty(exports, "__esModule", { value: true }); var interactionMode_1 = require("../common/interactionMode"); exports.FOCUS_DISABLED_CLASS = "pt-focus-disabled"; var fakeFocusEngine = { isActive: function () { return true; }, start: function () { return true; }, stop: function () { return true; }, }; var focusEngine = typeof document !== "undefined" ? new interactionMode_1.InteractionModeEngine(document.documentElement, exports.FOCUS_DISABLED_CLASS) : fakeFocusEngine; exports.FocusStyleManager = { alwaysShowFocus: function () { return focusEngine.stop(); }, isActive: function () { return focusEngine.isActive(); }, onlyShowFocusOnTabs: function () { return focusEngine.start(); }, };