mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +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
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)
|
void EmojiInputDialog::event(Core::Event& event)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue