mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +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
|
@ -64,6 +64,12 @@ void ConnectionToWindowManagerServer::super_space_key_pressed(i32 wm_id)
|
|||
Core::EventLoop::current().post_event(*window, make<WMSuperSpaceKeyPressedEvent>(wm_id));
|
||||
}
|
||||
|
||||
void ConnectionToWindowManagerServer::super_d_key_pressed(i32 wm_id)
|
||||
{
|
||||
if (auto* window = Window::from_window_id(wm_id))
|
||||
Core::EventLoop::current().post_event(*window, make<WMSuperDKeyPressedEvent>(wm_id));
|
||||
}
|
||||
|
||||
void ConnectionToWindowManagerServer::super_digit_key_pressed(i32 wm_id, u8 digit)
|
||||
{
|
||||
if (auto* window = Window::from_window_id(wm_id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue