mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 17:55:08 +00:00
Applications: Map Alt+F4 to Quit in FileManager/ProcessManager/Terminal.
This commit is contained in:
parent
7c06431ff7
commit
b0c673265a
6 changed files with 35 additions and 10 deletions
|
@ -20,6 +20,12 @@ GAction::GAction(const String& text, RetainPtr<GraphicsBitmap>&& icon, Function<
|
|||
{
|
||||
}
|
||||
|
||||
GAction::GAction(const String& text, const GShortcut& shortcut, Function<void(const GAction&)> on_activation_callback)
|
||||
: GAction(text, shortcut, nullptr, move(on_activation_callback))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
GAction::GAction(const String& text, const GShortcut& shortcut, RetainPtr<GraphicsBitmap>&& icon, Function<void(const GAction&)> on_activation_callback)
|
||||
: on_activation(move(on_activation_callback))
|
||||
, m_text(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue