mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
feat: add FocusManager
This is the bulk of the work for introducing the central logical unit for managing and sychronizing focus as a first-class Blockly concept with that of DOM focus. There's a lot to do yet, including: - Ensuring clicks within Blockly's scope correctly sync back to focus changes. - Adding support for, and testing, cases when focus is lost from all registered trees. - Testing nested tree propagation. - Testing the traverser utility class. - Adding implementations for IFocusableTree and IFocusableNode throughout Blockly.
This commit is contained in:
@@ -484,4 +484,13 @@ input[type=number] {
|
||||
.blocklyDragging .blocklyIconGroup {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.blocklyActiveFocus {
|
||||
outline-color: #2ae;
|
||||
outline-width: 2px;
|
||||
}
|
||||
.blocklyPassiveFocus {
|
||||
outline-color: #3fdfff;
|
||||
outline-width: 1.5px;
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user