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:
parent
daa1dcb5e8
commit
f0915641c5
2 changed files with 7 additions and 1 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue