From 1cbe892fce15526766bf7e4afe7285a3dc3c21b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 6 Nov 2023 12:55:22 +0100 Subject: [PATCH] media-viewer: Grab focus when revealed --- src/session/view/media_viewer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session/view/media_viewer.rs b/src/session/view/media_viewer.rs index 5add4ffe..965d88fd 100644 --- a/src/session/view/media_viewer.rs +++ b/src/session/view/media_viewer.rs @@ -295,6 +295,7 @@ impl MediaViewer { let imp = self.imp(); self.set_visible(true); + imp.menu.grab_focus(); imp.swipe_progress.set(0.0); imp.revealer.set_source_widget(Some(source_widget)); @@ -413,7 +414,6 @@ impl MediaViewer { return; }; - // self.set_event_actions(Some(&event)); let client = room.session().client(); match &message {