diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-02 10:04:49 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-02 10:10:06 +0100 |
commit | 596a5ce5a4dbd9e42d99d576a05a8958f04eb920 (patch) | |
tree | 71aa7cf0544232baaedf4ea4e8a7dea7a8e7e0fd /WindowServer/WSAPITypes.h | |
parent | 5c0fca0a955c91c41683941a9de159fa87e98446 (diff) | |
download | serenity-596a5ce5a4dbd9e42d99d576a05a8958f04eb920.zip |
LibGUI+WindowServer: Add app-global keyboard shortcuts.
This patch adds a GShortcut class. Each GAction can have a GShortcut which
will cause the event loop to listen for that key combination app-globally
and activate the event in case it's pressed.
The shortcut will also be displayed when the action is added to a menu.
Use this to hook up Alt+Up with the "open parent directory" action in the
FileManager app. :^)
Diffstat (limited to 'WindowServer/WSAPITypes.h')
-rw-r--r-- | WindowServer/WSAPITypes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WindowServer/WSAPITypes.h b/WindowServer/WSAPITypes.h index e7fd570809..1818e91155 100644 --- a/WindowServer/WSAPITypes.h +++ b/WindowServer/WSAPITypes.h @@ -166,6 +166,8 @@ struct WSAPI_ClientMessage { int menubar_id; int menu_id; unsigned identifier; + char shortcut_text[32]; + int shortcut_text_length; } menu; struct { WSAPI_Rect rect; |