Add gamepad navigation support for everything except context menus and dialogs

This commit is contained in:
Cameron Gutman committed 2018-09-30 13:41:32 -07:00
1 parent 9fb0bffd61
commit d706e81cd4
9 files changed
+291 -14

No files matched your search

+4
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()
}