/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tools
 */
import { ToolAdmin } from "@itwin/core-frontend";
import { SpecialKey } from "@itwin/appui-abstract";
import { UiFramework } from "../UiFramework";
/** UiFramework implementation of ToolAdmin
  * @alpha
  */
export class FrameworkToolAdmin extends ToolAdmin {
    /** Process shortcut key events */
    async processShortcutKey(e, wentDown) {
        let handled = false;
        if (wentDown && !UiFramework.isContextMenuOpen) {
            if (UiFramework.keyboardShortcuts.isFocusOnHome && e.key !== SpecialKey.Escape) {
                UiFramework.keyboardShortcuts.processKey(e.key, e.altKey, e.ctrlKey, e.shiftKey);
                handled = true;
            }
        }
        return handled;
    }
}
//# sourceMappingURL=FrameworkToolAdmin.js.map