/*SPDX-FileCopyrightText: 2018 Tomaz Canabrava <tcanabrava@kde.org>SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL*/import QtQuick 2.6import QtQuick.Layouts 1.1import QtQuick.Controls 2.12 as QQC2import org.kde.kcm 1.3 as KCMimport org.kde.kirigami 2.3 as KirigamiKirigami.FormLayout {QQC2.CheckBox {Kirigami.FormData.label: i18n("Sticky keys:")text: i18nc("Enable sticky keys", "Enable")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeys"}checked: kcm.keyboardSettings.stickyKeysonToggled: kcm.keyboardSettings.stickyKeys = checked}QQC2.CheckBox {text: i18nc("Lock sticky keys", "Lock")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeysLatch"extraEnabledConditions: kcm.keyboardSettings.stickyKeys}checked: kcm.keyboardSettings.stickyKeysLatchonToggled: kcm.keyboardSettings.stickyKeysLatch = checked}QQC2.CheckBox {id: stickyKeysAutoOfftext: i18n("Disable when two keys are held down")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeysAutoOff"extraEnabledConditions: kcm.keyboardSettings.stickyKeys}checked: kcm.keyboardSettings.stickyKeysAutoOffonToggled: kcm.keyboardSettings.stickyKeysAutoOff = checked}QQC2.CheckBox {text: i18n("Ring system bell when modifier keys are used")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "StickyKeysBeep"extraEnabledConditions: kcm.keyboardSettings.stickyKeys}checked: kcm.keyboardSettings.stickyKeysBeeponToggled: kcm.keyboardSettings.stickyKeysBeep = checked}Item {Kirigami.FormData.isSection: true}QQC2.CheckBox {Kirigami.FormData.label: i18n("Feedback:")text: i18n("Ring system bell when locking keys are toggled")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "ToggleKeysBeep"}checked: kcm.keyboardSettings.toggleKeysBeeponToggled: kcm.keyboardSettings.toggleKeysBeep = checked}QQC2.CheckBox {text: i18n("Show notification when modifier or locking keys are used")KCM.SettingStateBinding {configObject: kcm.keyboardSettingssettingName: "KeyboardNotifyModifiers"}checked: kcm.keyboardSettings.keyboardNotifyModifiersonToggled: kcm.keyboardSettings.keyboardNotifyModifiers = checked}QQC2.Button {id: thistext: i18n("Configure Notificationsβ¦")icon.name: "preferences-desktop-notification"onClicked: kcm.configureKNotify()}}