From a701f6c103e933f922147ce8b1acf5084a17e792 Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Sun, 3 May 2026 12:49:30 +0200 Subject: [PATCH] keybinds: extract DispatchTabDelta helper for upcoming focus-aware routing --- ChatTwo/GameFunctions/KeybindManager.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ChatTwo/GameFunctions/KeybindManager.cs b/ChatTwo/GameFunctions/KeybindManager.cs index 4de9161..88d4020 100644 --- a/ChatTwo/GameFunctions/KeybindManager.cs +++ b/ChatTwo/GameFunctions/KeybindManager.cs @@ -414,13 +414,13 @@ internal unsafe class KeybindManager : IDisposable { if (ConfigKeybindPressed(source, Plugin.Config.ChatTabForward)) { Plugin.KeyState[Plugin.Config.ChatTabForward!.Key] = false; - Plugin.ChatLogWindow.ChangeTabDelta(1); + DispatchTabDelta(1); return; } if (ConfigKeybindPressed(source, Plugin.Config.ChatTabBackward)) { Plugin.KeyState[Plugin.Config.ChatTabBackward!.Key] = false; - Plugin.ChatLogWindow.ChangeTabDelta(-1); + DispatchTabDelta(-1); return; } @@ -465,6 +465,15 @@ internal unsafe class KeybindManager : IDisposable { } } + // v0.6.0 — central dispatch for ChatTabForward/Backward so Task 25 + // can extend it with focus-aware routing to pop-out ChatInputBars. + // Right now both windows share the main ChatLogWindow.ChangeTabDelta, + // identical to v0.5.x behavior. + private void DispatchTabDelta(int delta) + { + Plugin.ChatLogWindow.ChangeTabDelta(delta); + } + private static Keybind GetKeybind(string id) { var outData = new FFXIVClientStructs.FFXIV.Client.System.Input.Keybind();