forked from Public/monero-gui
add android back button key filter
This commit is contained in:
@@ -71,6 +71,12 @@ bool filter::eventFilter(QObject *obj, QEvent *ev) {
|
|||||||
m_tabPressed = false;
|
m_tabPressed = false;
|
||||||
|
|
||||||
QString sks;
|
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) {
|
if(ke->key() == Qt::Key_Control) {
|
||||||
sks = "Ctrl";
|
sks = "Ctrl";
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
|||||||
Reference in New Issue
Block a user