moment/src/gui/Base/HShortcut.qml
2021-03-03 17:14:55 -04:00

13 lines
354 B
QML

// Copyright Mirage authors & contributors <https://github.com/mirukana/mirage>
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
Shortcut {
// TODO: use enabled + a Binding with restoreValue when switch to Qt 5.15
property bool active: true
enabled: ! window.anyPopupOrMenu && active
context: Qt.ApplicationShortcut
}