How can I make `DropDownMenu` ignore actions on th...
# compose
m
How can I make
DropDownMenu
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.
Initial thought is using
onKeyEvent
on the
Modifier
of the DropdownMenu