From 6ee3a7f99fed5b5c16048b5329212ed6a89ac47a Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Thu, 9 Nov 2023 08:30:45 +0000 Subject: [PATCH] Fixes the keyboard being shown when opening an Element call link. (#2048) --- ElementX/Sources/Application/Windowing/WindowManager.swift | 5 +++++ changelog.d/2025.bugfix | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelog.d/2025.bugfix diff --git a/ElementX/Sources/Application/Windowing/WindowManager.swift b/ElementX/Sources/Application/Windowing/WindowManager.swift index b7208a848..e9a42d1c5 100644 --- a/ElementX/Sources/Application/Windowing/WindowManager.swift +++ b/ElementX/Sources/Application/Windowing/WindowManager.swift @@ -66,5 +66,10 @@ class WindowManager { alternateWindow.isHidden = false overlayWindow.isHidden = true mainWindow.isHidden = true + + // We don't know what route the app will use when returning back + // to the main window, so end any editing operation now to avoid + // e.g. the keyboard being displayed on top of a call sheet. + mainWindow.endEditing(true) } } diff --git a/changelog.d/2025.bugfix b/changelog.d/2025.bugfix new file mode 100644 index 000000000..121b49584 --- /dev/null +++ b/changelog.d/2025.bugfix @@ -0,0 +1 @@ +Fix a bug where tapping a call link could open the call with a keyboard obscuring the sheet. \ No newline at end of file