summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Event.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-12 17:02:59 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-12 17:03:17 +0200
commit479f16bb6c0362a85a3fa108c05faffd5faf3aea (patch)
treeb459752fd22eb01ee07d3a41e1e5e0014a11af11 /Libraries/LibGUI/Event.h
parent90eec0a3d75a3e5e90c6ffb50e66cc1d7775745b (diff)
downloadserenity-479f16bb6c0362a85a3fa108c05faffd5faf3aea.zip
LibGUI: Add KeyEvent::to_string()
This makes it way easier to debug key events.
Diffstat (limited to 'Libraries/LibGUI/Event.h')
-rw-r--r--Libraries/LibGUI/Event.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Event.h b/Libraries/LibGUI/Event.h
index 2b2adf7bac..c62d83bc38 100644
--- a/Libraries/LibGUI/Event.h
+++ b/Libraries/LibGUI/Event.h
@@ -278,6 +278,8 @@ public:
u8 modifiers() const { return m_modifiers; }
String text() const { return m_text; }
+ String to_string() const;
+
private:
friend class WindowServerConnection;
int m_key { 0 };