Add the accessibleSearchEnabled property to allow users to control when the component focuses automatically while typing.
Change Details
New Property:accessibleSearchEnabled
Type:boolean
Default Value:true
Description: Allows enabling or disabling the accessible search functionality. When enabled, the component will automatically focus on nodes that match the key pressed.
Modification in handleKeyDown:
The accessibleSearchEnabled property is added to the parameter list.
Additional logic is included to handle accessible search based on the new property. If accessibleSearchEnabled is true, the function will search and automatically focus on nodes whose names start with the pressed key.
Description of Proposed Change
Purpose
Add the
accessibleSearchEnabled
property to allow users to control when the component focuses automatically while typing.Change Details
New Property:
accessibleSearchEnabled
boolean
true
Modification in
handleKeyDown
:accessibleSearchEnabled
property is added to the parameter list.accessibleSearchEnabled
istrue
, the function will search and automatically focus on nodes whose names start with the pressed key.Relevant Code
Benefits
This change enhances the user experience when interacting with the component, particularly in terms of keyboard accessibility and usability.