mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:38:12 +00:00
LibGUI: Ensure unknown emoji have a set display order
Currently, we use code point values as a tie break when sorting emoji by display order. When multiple code point emoji are supported, this will become a bit awkward. Rather than dealing with varying code point length while sorting, just set a maximum display order to ensure these are placed at the end.
This commit is contained in:
parent
b7ef36aa36
commit
4cb9472f97
2 changed files with 14 additions and 17 deletions
|
@ -17,9 +17,8 @@ class EmojiInputDialog final : public Dialog {
|
|||
C_OBJECT(EmojiInputDialog);
|
||||
|
||||
struct Emoji {
|
||||
u32 code_point { 0 };
|
||||
RefPtr<Button> button;
|
||||
Optional<Unicode::Emoji> emoji;
|
||||
Unicode::Emoji emoji;
|
||||
};
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue