masteramyx
10/24/2023, 8:42 PMDropDownMenu
ignore actions on the keyboard.
The built-in DropdownMenu
triggers its onDismissRequest
for example when tapping occurs outside the menu bounds.
But we are using the the dropdown menu for several different cases. One of them involves a TextField which triggers some results that are displayed in the dropdown menu.
So once a user has typed enough to trigger a result(DropdownMenu expansion), the next key input then invokes onDismissRequest
which leads to undesired behavior.masteramyx
10/25/2023, 1:14 AMonKeyEvent
on the Modifier
of the DropdownMenu