mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
28 lines
530 B
QML
28 lines
530 B
QML
import QtQuick 2.0
|
|
import QtQuick.Controls 2.2
|
|
|
|
ItemDelegate {
|
|
property GridView grid
|
|
|
|
highlighted: grid.activeFocus && grid.currentItem === this
|
|
|
|
Keys.onLeftPressed: {
|
|
grid.moveCurrentIndexLeft()
|
|
}
|
|
Keys.onRightPressed: {
|
|
grid.moveCurrentIndexRight()
|
|
}
|
|
Keys.onDownPressed: {
|
|
grid.moveCurrentIndexDown()
|
|
}
|
|
Keys.onUpPressed: {
|
|
grid.moveCurrentIndexUp()
|
|
}
|
|
Keys.onReturnPressed: {
|
|
clicked()
|
|
}
|
|
Keys.onEnterPressed: {
|
|
clicked()
|
|
}
|
|
}
|