From 9ad613a70218721657397b529ba1569c597bc191 Mon Sep 17 00:00:00 2001 From: aemsle Date: Thu, 5 Sep 2024 00:17:47 +0100 Subject: [PATCH] Added tab support to Auto completion box --- ChatTwo/Ui/ChatLogWindow.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index 2845b39..296bd41 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -1503,6 +1503,19 @@ public sealed class ChatLogWindow : Window AutoCompleteShouldScroll = true; return 1; + + default: + if(ImGui.IsKeyPressed(ImGuiKey.Tab)) + { + if (AutoCompleteSelection == AutoCompleteList.Count - 1) + AutoCompleteSelection = 0; + else + AutoCompleteSelection++; + + AutoCompleteShouldScroll = true; + return 1; + } + break; } return 0;