2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +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

@@ -734,6 +734,17 @@ bool Instance::minimizeCurrentActiveCall() {
return false;
}
bool Instance::toggleFullScreenCurrentActiveCall() {
if (inCall() && _currentCallPanel->isActive()) {
_currentCallPanel->toggleFullScreen();
return true;
} else if (inGroupCall() && _currentGroupCallPanel->isActive()) {
_currentGroupCallPanel->toggleFullScreen();
return true;
}
return false;
}
bool Instance::closeCurrentActiveCall() {
if (inGroupCall() && _currentGroupCallPanel->isActive()) {
_currentGroupCallPanel->close();