Merge pull request #1080 from kiwix/fullscreen_keysequence_fix

Fixed the fullscreen keyboard shortcut
This commit is contained in:
Kelson 2024-04-12 09:27:40 +02:00 committed by GitHub
commit ccccc80dfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -446,8 +446,8 @@ void KiwixApp::createActions()
this, [=]() { getTabWidget()->openFindInPageBar(); });
const auto fullScreenKeySeq = QKeySequence(QKeySequence::FullScreen).isEmpty()
? (int) Qt::Key_F11
: (int) QKeySequence::FullScreen;
? QKeySequence(Qt::Key_F11)
: QKeySequence(QKeySequence::FullScreen);
CREATE_ACTION_ICON_SHORTCUT(ToggleFullscreenAction, "full-screen-enter", gt("set-fullscreen"), fullScreenKeySeq);
connect(mpa_actions[ToggleFullscreenAction], &QAction::toggled,
this, [=](bool checked) {