isFocusValidForShortcuts MethodProtected
Check if focus allows shortcuts to run — i.e., focus is Home or AccuDraw, or focus is not on an editable element and context menu is not open. Called synchronously in _keyEventHandler to decide whether to call preventDefault(), and in onKeyTransition to gate shortcut processing.
isFocusValidForShortcuts(): boolean
@returns true to allow shortcuts
Returns - boolean
true to allow shortcuts
Defined in
- core/frontend/src/tools/ToolAdmin.ts Line 1505
Last Updated: 03 September, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.