From f98ce43465eeeac2d73228d5b41be71209e6b066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 6 Mar 2021 18:03:04 +0100 Subject: [PATCH] Add a shortcut to going back --- YACReaderLibrary/comic_vine/comic_vine_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index 036d494d..1ca259d9 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -57,6 +57,8 @@ void ComicVineDialog::doLayout() searchButton = new QPushButton(tr("search")); closeButton = new QPushButton(tr("close")); + backButton->setShortcut(QKeySequence(Qt::Key_Backspace)); + closeButton->setDefault(false); closeButton->setAutoDefault(false);