mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 14:42:50 +02:00
LibGUI: Close EmojiDialog on active window change
This patch makes EmojiDialog be closed whenever the focus moves away from it just like the CommandPalette.
This commit is contained in:
committed by
Brian Gianforcaro
parent
2a7b3ca4b8
commit
dbad617351
@@ -92,6 +92,11 @@ EmojiInputDialog::EmojiInputDialog(Window* parent_window)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
on_active_window_change = [this](bool is_active_window) {
|
||||
if (!is_active_window)
|
||||
close();
|
||||
};
|
||||
}
|
||||
|
||||
void EmojiInputDialog::event(Core::Event& event)
|
||||
|
||||
Reference in New Issue
Block a user