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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user