From cce3ae02685f80b0a7f86f1dc83429b46d166975 Mon Sep 17 00:00:00 2001 From: James Turner <zakalawe@mac.com> Date: Mon, 1 Oct 2018 14:22:48 +0100 Subject: [PATCH] Launcher: tweak aircraft list key handling --- src/GUI/qml/AircraftList.qml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/GUI/qml/AircraftList.qml b/src/GUI/qml/AircraftList.qml index 05ca3557a..8ca4ff13d 100644 --- a/src/GUI/qml/AircraftList.qml +++ b/src/GUI/qml/AircraftList.qml @@ -2,7 +2,7 @@ import QtQuick 2.2 import FlightGear.Launcher 1.0 as FG import "." // -> forces the qmldir to be loaded -Item +FocusScope { id: root @@ -136,6 +136,7 @@ Item } clip: true + focus: true // prevent mouse wheel interactions when the details view is // visible, since it has its own flickable @@ -148,14 +149,6 @@ Item // when doing a progrmatic set readonly property int __realHighlightMoveDuration: 200 - Keys.onUpPressed: { - - } - - Keys.onDownPressed: { - - } - function updateSelectionFromLauncher() { model.selectVariantForAircraftURI(_launcher.selectedAircraft);