mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-14 05:12:27 +00:00
18 lines
341 B
QML
18 lines
341 B
QML
import QtQuick 2.0
|
|
import QtQuick.Controls 2.2
|
|
|
|
ToolButton {
|
|
activeFocusOnTab: true
|
|
|
|
Keys.onReturnPressed: {
|
|
clicked()
|
|
}
|
|
|
|
Keys.onRightPressed: {
|
|
nextItemInFocusChain(true).forceActiveFocus(Qt.TabFocus)
|
|
}
|
|
|
|
Keys.onLeftPressed: {
|
|
nextItemInFocusChain(false).forceActiveFocus(Qt.TabFocus)
|
|
}
|
|
}
|