From cf53e388912522218869195ba2787a88b2b4427d Mon Sep 17 00:00:00 2001 From: Christoffer Winterkvist Date: Fri, 12 Jul 2024 08:33:26 +0200 Subject: [PATCH] fix: return correct window in relative focus functions Update SystemWindowRelativeFocus methods to return `currentWindow` instead of `nil`. This ensures that the current window is correctly returned when the focus shift functions are called. --- .../SystemWindowRelativeFocusDown.swift | 2 +- .../SystemWindowRelativeFocusLeft.swift | 2 +- .../SystemWindowRelativeFocusRight.swift | 2 +- .../SystemWindowRelativeFocus/SystemWindowRelativeFocusUp.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusDown.swift b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusDown.swift index af3cb2f8..c9033b28 100644 --- a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusDown.swift +++ b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusDown.swift @@ -29,6 +29,6 @@ enum SystemWindowRelativeFocusDown { } } - return nil + return currentWindow } } diff --git a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusLeft.swift b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusLeft.swift index f3939e57..bd28df99 100644 --- a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusLeft.swift +++ b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusLeft.swift @@ -28,7 +28,7 @@ enum SystemWindowRelativeFocusLeft { } } - return nil + return currentWindow } } diff --git a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusRight.swift b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusRight.swift index e57ed16f..9f6c9a5d 100644 --- a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusRight.swift +++ b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusRight.swift @@ -28,6 +28,6 @@ enum SystemWindowRelativeFocusRight { } } - return nil + return currentWindow } } diff --git a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusUp.swift b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusUp.swift index bb3610b2..151ad6f0 100644 --- a/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusUp.swift +++ b/App/Sources/Core/Runners/System/SystemWindowRelativeFocus/SystemWindowRelativeFocusUp.swift @@ -29,6 +29,6 @@ enum SystemWindowRelativeFocusUp { } } - return nil + return currentWindow } }