From 418e4816d4f8ea5d700655186251b600011937ff Mon Sep 17 00:00:00 2001 From: Jaquee Date: Mon, 7 Aug 2017 14:01:55 +0200 Subject: [PATCH] add android back button key filter --- filter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/filter.cpp b/filter.cpp index 9a2c9356..36f2c968 100644 --- a/filter.cpp +++ b/filter.cpp @@ -71,6 +71,12 @@ bool filter::eventFilter(QObject *obj, QEvent *ev) { m_tabPressed = false; QString sks; +#ifdef Q_OS_ANDROID + if(ke->key() == Qt::Key_Back) { + qDebug() << "Android back hit"; + sks = "android_back"; + } +#endif if(ke->key() == Qt::Key_Control) { sks = "Ctrl"; #ifdef Q_OS_MAC