mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-23 03:58:56 -04:00
Merge pull request #1068 from sgourdas/feature/fullscreen_shortcut
On undefined fullscreen key sequence, hardcode to F11
This commit is contained in:
commit
398a4fcbe3
@ -414,7 +414,10 @@ void KiwixApp::createActions()
|
|||||||
connect(mpa_actions[FindInPageAction], &QAction::triggered,
|
connect(mpa_actions[FindInPageAction], &QAction::triggered,
|
||||||
this, [=]() { getTabWidget()->openFindInPageBar(); });
|
this, [=]() { getTabWidget()->openFindInPageBar(); });
|
||||||
|
|
||||||
CREATE_ACTION_ICON_SHORTCUT(ToggleFullscreenAction, "full-screen-enter", gt("set-fullscreen"), QKeySequence::FullScreen);
|
const auto fullScreenKeySeq = QKeySequence(QKeySequence::FullScreen).isEmpty()
|
||||||
|
? Qt::Key_F11
|
||||||
|
: QKeySequence::FullScreen;
|
||||||
|
CREATE_ACTION_ICON_SHORTCUT(ToggleFullscreenAction, "full-screen-enter", gt("set-fullscreen"), fullScreenKeySeq);
|
||||||
connect(mpa_actions[ToggleFullscreenAction], &QAction::toggled,
|
connect(mpa_actions[ToggleFullscreenAction], &QAction::toggled,
|
||||||
this, [=](bool checked) {
|
this, [=](bool checked) {
|
||||||
auto action = mpa_actions[ToggleFullscreenAction];
|
auto action = mpa_actions[ToggleFullscreenAction];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user