From 1414f2fcce6bcd3f02c571a371d999aff8814a74 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 6 Apr 2017 09:45:46 +0200 Subject: Gallery: handle Back shortcut on mobile Menus, dialogs, and drawers already handle it out of the box, but for page/stack navigation we need an explicit shortcut. Change-Id: Iad3e05f0fc31dbd66e3b1aa9286f8ef076fcff0d Task-number: QTBUG-58105 Reviewed-by: Mitch Curtis --- examples/quickcontrols2/gallery/gallery.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/quickcontrols2') diff --git a/examples/quickcontrols2/gallery/gallery.qml b/examples/quickcontrols2/gallery/gallery.qml index ed5171df..c077f6c5 100644 --- a/examples/quickcontrols2/gallery/gallery.qml +++ b/examples/quickcontrols2/gallery/gallery.qml @@ -48,7 +48,7 @@ ** ****************************************************************************/ -import QtQuick 2.6 +import QtQuick 2.9 import QtQuick.Layouts 1.3 import QtQuick.Controls 2.2 import QtQuick.Controls.Material 2.1 @@ -68,7 +68,7 @@ ApplicationWindow { } Shortcut { - sequence: "Esc" + sequences: ["Esc", "Back"] enabled: stackView.depth > 1 onActivated: { stackView.pop() -- cgit v1.2.3