fix: update modifier state for all windows, not just the main window

Fixes https://github.com/pop-os/cosmic-files/issues/1152
This commit is contained in:
therealmate 2025-10-05 20:39:56 +02:00 committed by Michael Murphy
parent d788fe2421
commit c7ee1c9ae1

View file

@ -2968,8 +2968,8 @@ impl Application for App {
}
},
Message::ModifiersChanged(window_id, modifiers) => {
self.modifiers = modifiers;
if self.core.main_window_id() == Some(window_id) {
self.modifiers = modifiers;
let entity = self.tab_model.active();
return self.update(Message::TabMessage(
Some(entity),