1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 14:55:06 +00:00

TextEditor: Add "delete" action.

This commit is contained in:
Andreas Kling 2019-03-20 18:16:04 +01:00
parent daa1dcb5e8
commit f0915641c5
2 changed files with 7 additions and 1 deletions

View file

@ -93,6 +93,7 @@ public:
void cut();
void copy();
void paste();
void delete_selection();
Function<void(GTextEditor&)> on_return_pressed;
Function<void(GTextEditor&)> on_escape_pressed;
@ -149,7 +150,6 @@ private:
Rect ruler_content_rect(int line) const;
void toggle_selection_if_needed_for_event(const GKeyEvent&);
void insert_at_cursor_or_replace_selection(const String&);
void delete_selection();
Type m_type { MultiLine };