mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
Base+LibGUI: Add insert emoji common action
This adds a common action to invoke the emoji picker.
This commit is contained in:
parent
dd510b24c9
commit
6a09d89329
5 changed files with 27 additions and 0 deletions
|
@ -150,6 +150,7 @@ public:
|
|||
void delete_previous_char();
|
||||
void delete_from_line_start_to_cursor();
|
||||
void select_all();
|
||||
void insert_emoji();
|
||||
void select_current_line();
|
||||
virtual void undo();
|
||||
virtual void redo();
|
||||
|
@ -176,6 +177,7 @@ public:
|
|||
Action& paste_action() { return *m_paste_action; }
|
||||
Action& go_to_line_action() { return *m_go_to_line_action; }
|
||||
Action& select_all_action() { return *m_select_all_action; }
|
||||
Action& insert_emoji_action() { return *m_insert_emoji_action; }
|
||||
|
||||
void add_custom_context_menu_action(Action&);
|
||||
|
||||
|
@ -394,6 +396,7 @@ private:
|
|||
RefPtr<Action> m_paste_action;
|
||||
RefPtr<Action> m_go_to_line_action;
|
||||
RefPtr<Action> m_select_all_action;
|
||||
RefPtr<Action> m_insert_emoji_action;
|
||||
Core::ElapsedTimer m_triple_click_timer;
|
||||
NonnullRefPtrVector<Action> m_custom_context_menu_actions;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue