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

WindowServer+Keymap+LibGUI: Add widget to display current keymap

This commit is contained in:
Timur Sultanov 2022-01-19 14:44:56 +03:00 committed by Andreas Kling
parent 68a01f0e27
commit b9c558f6c6
14 changed files with 160 additions and 17 deletions

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2021, Timur Sultanov <SultanovTS@yandex.ru>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/Label.h>
#include <LibGUI/Window.h>
class KeymapStatusWidget;
class KeymapStatusWindow final : public GUI::Window {
C_OBJECT(KeymapStatusWindow)
public:
virtual ~KeymapStatusWindow() override;
private:
void wm_event(GUI::WMEvent&) override;
KeymapStatusWindow();
RefPtr<GUI::Label> m_label;
void set_keymap_text(String const& keymap);
};