From ff1de78aa846c1d6741ea38f239ed9249439c9ed Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Mon, 23 Jan 2023 22:47:22 +0100 Subject: [PATCH] fix(keyboard-nav): text input focus lost on click --- src/keyboard_nav.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/keyboard_nav.rs b/src/keyboard_nav.rs index 3b4fd729..98bdafd9 100644 --- a/src/keyboard_nav.rs +++ b/src/keyboard_nav.rs @@ -23,7 +23,9 @@ pub fn subscription() -> Subscription { } else { Message::FocusNext }), - (Event::Mouse(mouse::Event::ButtonReleased { .. }), _) => Some(Message::Unfocus), + (Event::Mouse(mouse::Event::ButtonPressed { .. }), event::Status::Ignored) => { + Some(Message::Unfocus) + } _ => None, }) }