add android back button key filter

This commit is contained in:
Jaquee 2017-08-07 14:01:55 +02:00
parent a6606a3330
commit 418e4816d4
1 changed files with 6 additions and 0 deletions

View File

@ -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