media-viewer: Grab focus when revealed
This commit is contained in:
parent
4ee0a60b6c
commit
1cbe892fce
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue