2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

mac tray icon/menu support improved, custom context menu started

This commit is contained in:
John Preston
2014-09-26 16:48:19 -07:00
parent 68a63e2217
commit a4e9dadc2d
23 changed files with 579 additions and 115 deletions

View File

@@ -61,6 +61,13 @@ namespace {
case 3: if (ev->key() == Qt::Key_F11) _debugState = 4; else if (ev->key() != Qt::Key_F10) _debugState = 0; break;
case 4: if (ev->key() == Qt::Key_F12) offerDebug(); if (ev->key() != Qt::Key_F11) _debugState = 0; break;
}
if (cPlatform() == dbipMac && ev->key() == Qt::Key_W && (ev->modifiers() & (Qt::MetaModifier | Qt::ControlModifier))) {
if (cWorkMode() == dbiwmTrayOnly || cWorkMode() == dbiwmWindowAndTray) {
App::wnd()->minimizeToTray();
return true;
}
}
}
return QObject::eventFilter(o, e);
}