mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00: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:
parent
2a7b3ca4b8
commit
dbad617351
Notes:
sideshowbarker
2024-07-17 22:55:25 +09:00
Author: https://github.com/iCristalrope Commit: https://github.com/SerenityOS/serenity/commit/dbad617351 Pull-request: https://github.com/SerenityOS/serenity/pull/14215 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue