Ctrl+W close active rich message editor window.

This commit is contained in:
John Preston
2026-07-03 13:23:23 +04:00
parent 564b1e5b30
commit d64fde172c
3 changed files with 31 additions and 2 deletions
+4 -1
View File
@@ -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()) {