aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ShiftKey.qml
blob: 76fdc3fab0aa93ba07054e4e253149f55bffeb6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick.VirtualKeyboard

/*!
    \qmltype ShiftKey
    \inqmlmodule QtQuick.VirtualKeyboard.Components
    \ingroup qmlclass
    \ingroup qtvirtualkeyboard-components-qml
    \ingroup qtvirtualkeyboard-key-types
    \inherits BaseKey

    \brief Shift key for keyboard layouts.

    This key changes the shift state of the keyboard.
*/

BaseKey {
    id: shiftKey
    keyType: QtVirtualKeyboard.ShiftKey
    key: Qt.Key_Shift
    enabled: InputContext.priv.shiftHandler.toggleShiftEnabled
    highlighted: true
    functionKey: true
    keyPanelDelegate: keyboard.style ? keyboard.style.shiftKeyPanel : undefined
    onClicked: InputContext.priv.shiftHandler.toggleShift()
}