2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use global Fn+F shortcut for toggle fullscreen on macOS.

This commit is contained in:
John Preston
2023-03-15 16:33:55 +04:00
parent eae2788f73
commit 152661dcea
11 changed files with 60 additions and 6 deletions

View File

@@ -487,7 +487,7 @@ void Panel::initControls() {
}
void Panel::toggleFullScreen() {
if (_fullScreenOrMaximized.current()) {
if (_fullScreenOrMaximized.current() || window()->isFullScreen()) {
window()->showNormal();
} else {
window()->showFullScreen();