mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI: Add Rename action
This commit is contained in:
parent
f634949d26
commit
886e011608
Notes:
sideshowbarker
2024-07-19 17:25:28 +09:00
Author: https://github.com/krkk
Commit: 886e011608
Pull-request: https://github.com/SerenityOS/serenity/pull/8713
2 changed files with 6 additions and 0 deletions
|
@ -149,6 +149,11 @@ NonnullRefPtr<Action> make_select_all_action(Function<void(Action&)> callback, C
|
|||
return Action::create("Select &All", { Mod_Ctrl, Key_A }, Gfx::Bitmap::load_from_file("/res/icons/16x16/select-all.png"), move(callback), parent);
|
||||
}
|
||||
|
||||
NonnullRefPtr<Action> make_rename_action(Function<void(Action&)> callback, Core::Object* parent)
|
||||
{
|
||||
return Action::create("Re&name", Key_F2, move(callback), parent);
|
||||
}
|
||||
|
||||
NonnullRefPtr<Action> make_properties_action(Function<void(Action&)> callback, Core::Object* parent)
|
||||
{
|
||||
return Action::create("P&roperties", { Mod_Alt, Key_Return }, Gfx::Bitmap::load_from_file("/res/icons/16x16/properties.png"), move(callback), parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue