ShiftKey.qml 817 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (C) 2016 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick
  4. import QtQuick.VirtualKeyboard
  5. /*!
  6. \qmltype ShiftKey
  7. \inqmlmodule QtQuick.VirtualKeyboard.Components
  8. \ingroup qmlclass
  9. \ingroup qtvirtualkeyboard-components-qml
  10. \ingroup qtvirtualkeyboard-key-types
  11. \inherits BaseKey
  12. \brief Shift key for keyboard layouts.
  13. This key changes the shift state of the keyboard.
  14. */
  15. BaseKey {
  16. id: shiftKey
  17. keyType: QtVirtualKeyboard.KeyType.ShiftKey
  18. key: Qt.Key_Shift
  19. enabled: InputContext.priv.shiftHandler.toggleShiftEnabled
  20. highlighted: true
  21. functionKey: true
  22. keyPanelDelegate: keyboard.style ? keyboard.style.shiftKeyPanel : undefined
  23. onClicked: InputContext.priv.shiftHandler.toggleShift()
  24. }