Skip to content

Commit

Permalink
Merge pull request #1080 from kiwix/fullscreen_keysequence_fix
Browse files Browse the repository at this point in the history
Fixed the fullscreen keyboard shortcut
  • Loading branch information
kelson42 authored Apr 12, 2024
2 parents b3b09c4 + 1ccfcad commit ccccc80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kiwixapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ccccc80

Please sign in to comment.