Add gamepad navigation support for everything except context menus and dialogs

This commit is contained in:
Cameron Gutman 2018-09-30 13:41:32 -07:00
commit d706e81cd4
9 changed files with 291 additions and 14 deletions

View file

@ -2,6 +2,10 @@ import QtQuick 2.0
import QtQuick.Controls 2.2
MenuItem {
// Ensure focus can't be given to an invisible item
enabled: visible
height: visible ? implicitHeight : 0
Keys.onReturnPressed: {
triggered()
}