1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

LibGUI: Move shortcut actions from GEventLoop to GApplications.

I'm gonna want to have nested event loops sooner or later, so let's not
pollute GEventLoop with things that are meant to work globally.

This patch also changes key events to pass around their modifiers as a
bitfield all the way around the system instead of breaking them up.
This commit is contained in:
Andreas Kling 2019-03-03 12:32:15 +01:00
parent 725b57fe1f
commit 5e40aa4f1a
11 changed files with 63 additions and 55 deletions

View file

@ -41,9 +41,6 @@ public:
pid_t server_pid() const { return m_server_pid; }
static void register_action_with_shortcut(Badge<GAction>, GAction&);
static void unregister_action_with_shortcut(Badge<GAction>, GAction&);
private:
void wait_for_event();
bool drain_messages_from_server();