mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Ctrl+W close active rich message editor window.
This commit is contained in:
@@ -47,6 +47,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "iv/iv_instance.h"
|
||||
#include "iv/iv_data.h"
|
||||
#include "iv/editor/iv_editor_session.h"
|
||||
#include "iv/editor/iv_editor_window.h"
|
||||
#include "lang/lang_translator.h"
|
||||
#include "lang/lang_cloud_manager.h"
|
||||
#include "lang/lang_hardcoded.h"
|
||||
@@ -1685,7 +1686,9 @@ bool Application::closeActiveWindow() {
|
||||
if (_mediaView && _mediaView->isActive()) {
|
||||
_mediaView->close();
|
||||
return true;
|
||||
} else if (_iv->closeActive() || calls().closeCurrentActiveCall()) {
|
||||
} else if (_iv->closeActive()
|
||||
|| Iv::Editor::CloseActiveWindow()
|
||||
|| calls().closeCurrentActiveCall()) {
|
||||
return true;
|
||||
} else if (const auto window = activeWindow()) {
|
||||
if (window->widget()->isActive()) {
|
||||
|
||||
Reference in New Issue
Block a user