media-viewer: Grab focus when revealed

This commit is contained in:
Kévin Commaille 2023-11-06 12:55:22 +01:00
parent 4ee0a60b6c
commit 1cbe892fce
No known key found for this signature in database
GPG key ID: 29A48C1F03620416

View file

@ -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 {