mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
TextEditor: The delete key should work even when there's no selection.
This commit is contained in:
parent
be4533717a
commit
ed2303e2d8
3 changed files with 30 additions and 24 deletions
|
@ -93,7 +93,7 @@ public:
|
|||
void cut();
|
||||
void copy();
|
||||
void paste();
|
||||
void delete_selection();
|
||||
void do_delete();
|
||||
|
||||
Function<void(GTextEditor&)> on_return_pressed;
|
||||
Function<void(GTextEditor&)> on_escape_pressed;
|
||||
|
@ -150,6 +150,7 @@ 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