1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 22:35:06 +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

@ -78,7 +78,7 @@ int main(int argc, char** argv)
});
auto delete_action = GAction::create("Delete", { 0, Key_Delete }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/delete.rgb", { 16, 16 }), [&] (const GAction&) {
text_editor->delete_selection();
text_editor->do_delete();
});
auto menubar = make<GMenuBar>();