Stay organized with collections
Save and categorize content based on your preferences.
blockly > FocusManager > unregisterTree
FocusManager.unregisterTree() method
Unregisters a IFocusableTree from automatic focus management.
If the tree had a previous focused node, it will have its highlight removed. This function does NOT change DOM focus.
This function throws if the provided tree is not currently registered in this manager.
This function will reset the tree's root element tabindex if the tree was registered with automatic tab management.
Signature:
unregisterTree(tree: IFocusableTree): void;
Parameters
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-24 UTC."],[],[],null,["[blockly](./blockly.md) \\\u003e [FocusManager](./blockly.focusmanager_class.md) \\\u003e [unregisterTree](./blockly.focusmanager_class.unregistertree_1_method.md)\n\nFocusManager.unregisterTree() method\n------------------------------------\n\nUnregisters a IFocusableTree from automatic focus management.\n\nIf the tree had a previous focused node, it will have its highlight removed. This function does NOT change DOM focus.\n\nThis function throws if the provided tree is not currently registered in this manager.\n\nThis function will reset the tree's root element tabindex if the tree was registered with automatic tab management.\n\n**Signature:** \n\n unregisterTree(tree: IFocusableTree): void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|---------------------------------------------------------|-------------|\n| tree | [IFocusableTree](./blockly.ifocusabletree_interface.md) | |\n\n**Returns:**\n\nvoid"]]