mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
Taskbar+Desktop: Add super+D keyboard shortcut
This shortcut has the same effect as pressing the "Show Desktop" button in the taskbar. This shortcut already exists in Windows.
This commit is contained in:
parent
12682f0bcc
commit
5a3321b899
7 changed files with 38 additions and 0 deletions
|
@ -67,6 +67,7 @@ public:
|
|||
WM_AppletAreaSizeChanged,
|
||||
WM_SuperKeyPressed,
|
||||
WM_SuperSpaceKeyPressed,
|
||||
WM_SuperDKeyPressed,
|
||||
WM_SuperDigitKeyPressed,
|
||||
WM_WorkspaceChanged,
|
||||
WM_KeymapChanged,
|
||||
|
@ -117,6 +118,14 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class WMSuperDKeyPressedEvent : public WMEvent {
|
||||
public:
|
||||
explicit WMSuperDKeyPressedEvent(int client_id)
|
||||
: WMEvent(Event::Type::WM_SuperDKeyPressed, client_id, 0)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class WMSuperDigitKeyPressedEvent : public WMEvent {
|
||||
public:
|
||||
WMSuperDigitKeyPressedEvent(int client_id, u8 digit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue