1
Fork 0
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:
Andreas Kling 2019-03-20 23:11:00 +01:00
parent be4533717a
commit ed2303e2d8
3 changed files with 30 additions and 24 deletions

View file

@ -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 };