mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
TextEditor: Added GCommonActions
This commit is contained in:
parent
3261ffb2fd
commit
5594f19624
Notes:
sideshowbarker
2024-07-19 12:16:50 +09:00
Author: https://github.com/RyanGrieb
Commit: 5594f19624
Pull-request: https://github.com/SerenityOS/serenity/pull/519
1 changed files with 9 additions and 12 deletions
|
@ -47,22 +47,19 @@ void GTextEditor::create_actions()
|
|||
},
|
||||
this);
|
||||
|
||||
m_cut_action = GAction::create(
|
||||
"Cut", { Mod_Ctrl, Key_X }, GraphicsBitmap::load_from_file("/res/icons/cut16.png"), [&](const GAction&) {
|
||||
cut();
|
||||
},
|
||||
m_cut_action = GCommonActions::make_cut_action([&] {
|
||||
cut();
|
||||
},
|
||||
this);
|
||||
|
||||
m_copy_action = GAction::create(
|
||||
"Copy", { Mod_Ctrl, Key_C }, GraphicsBitmap::load_from_file("/res/icons/16x16/edit-copy.png"), [&](const GAction&) {
|
||||
copy();
|
||||
},
|
||||
m_copy_action = GCommonActions::make_copy_action([&] {
|
||||
copy();
|
||||
},
|
||||
this);
|
||||
|
||||
m_paste_action = GAction::create(
|
||||
"Paste", { Mod_Ctrl, Key_V }, GraphicsBitmap::load_from_file("/res/icons/paste16.png"), [&](const GAction&) {
|
||||
paste();
|
||||
},
|
||||
m_paste_action = GCommonActions::make_paste_action([&] {
|
||||
paste();
|
||||
},
|
||||
this);
|
||||
|
||||
m_delete_action = GAction::create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue