Close the keyboard when use opens activity menu (#4673)

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
Kelrap 2025-11-19 11:42:50 -05:00 committed by GitHub
parent 0e590a37ff
commit 407ea6254e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2333,6 +2333,7 @@ class ChatController extends State<ChatPageWithRoom>
ValueNotifier<bool> showActivityDropdown = ValueNotifier(false);
void toggleShowDropdown() async {
if (mounted) {
inputFocus.unfocus();
showActivityDropdown.value = !showActivityDropdown.value;
}
}