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

LibGUI: Add KeyEvent::to_string()

This makes it way easier to debug key events.
This commit is contained in:
Andreas Kling 2020-05-12 17:02:59 +02:00
parent 90eec0a3d7
commit 479f16bb6c
2 changed files with 31 additions and 0 deletions

View file

@ -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 };