mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 17:38:12 +00:00
LibGUI: Add GUI::CommonActions::make_select_all_action() :^)
This commit is contained in:
parent
8001a85fc7
commit
eec22acb8e
3 changed files with 7 additions and 2 deletions
|
@ -98,8 +98,7 @@ void TextEditor::create_actions()
|
|||
},
|
||||
this);
|
||||
}
|
||||
m_select_all_action = Action::create(
|
||||
"Select all", { Mod_Ctrl, Key_A }, Gfx::Bitmap::load_from_file("/res/icons/16x16/select-all.png"), [this](auto&) { select_all(); }, this);
|
||||
m_select_all_action = CommonActions::make_select_all_action([this](auto&) { select_all(); }, this);
|
||||
}
|
||||
|
||||
void TextEditor::set_text(const StringView& text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue