diff options
author | Nícolas F. R. A. Prado <n@nfraprado.net> | 2022-02-24 22:17:44 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-22 12:21:21 +0100 |
commit | 2c44c7fc89a8bcf81ec5e93e42133b7c6aaebc38 (patch) | |
tree | 760a992d6f640d46e5a70c723c6c6aa2834ee731 /Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.h | |
parent | a48d7d6adc8969e942088d7752a7b75124dc1686 (diff) | |
download | serenity-2c44c7fc89a8bcf81ec5e93e42133b7c6aaebc38.zip |
KeyboardSettings: Allow changing and applying active keymap
Previously only the list of allowed keymaps could be modified and
applied to the system.
Add a new button to activate the selected keymap from the list. When
applying the changes to the system, also apply the active keymap.
Diffstat (limited to 'Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.h')
-rw-r--r-- | Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.h b/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.h index 64d262fdea..438aee09a7 100644 --- a/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.h +++ b/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.h @@ -26,14 +26,16 @@ public: private: KeyboardSettingsWidget(); - void set_keymaps(Vector<String> const& keymaps); + void set_keymaps(Vector<String> const& keymaps, String const& active_keymap); Vector<String> m_initial_keymap_list; String m_initial_active_keymap; RefPtr<GUI::ListView> m_selected_keymaps_listview; + RefPtr<GUI::Label> m_active_keymap_label; RefPtr<GUI::CheckBox> m_num_lock_checkbox; + RefPtr<GUI::Button> m_activate_keymap_button; RefPtr<GUI::Button> m_add_keymap_button; RefPtr<GUI::Button> m_remove_keymap_button; RefPtr<GUI::TextEditor> m_test_typing_area; |