mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Support Control-Cmd-F to exit full screen
It is common for many fullscreen apps to use this command sequence to exit full-screen (e.g. Chrome, Safari).
This commit is contained in:
@@ -37,7 +37,9 @@ LionFullScreen::eventFilter(QObject *obj, QEvent *event)
|
||||
if (obj != main) return false;
|
||||
|
||||
if (event->type() == QEvent::KeyPress &&
|
||||
static_cast<QKeyEvent *>(event)->key() == Qt::Key_Escape) {
|
||||
(static_cast<QKeyEvent *>(event)->key() == Qt::Key_Escape ||
|
||||
(static_cast<QKeyEvent *>(event)->key() == Qt::Key_F &&
|
||||
static_cast<QKeyEvent *>(event)->modifiers() == (Qt::MetaModifier|Qt::ControlModifier)))) {
|
||||
|
||||
// if in full screen then toggle, otherwise do nothing
|
||||
NSView *nsview = (NSView *) main->winId();
|
||||
|
||||
Reference in New Issue
Block a user