Merge pull request #121 from aemsle/main

Added tab support to auto completion box
This commit is contained in:
Infi
2024-09-06 12:28:32 +02:00
committed by GitHub
+13
View File
@@ -1503,6 +1503,19 @@ public sealed class ChatLogWindow : Window
AutoCompleteShouldScroll = true; AutoCompleteShouldScroll = true;
return 1; return 1;
default:
if(ImGui.IsKeyPressed(ImGuiKey.Tab))
{
if (AutoCompleteSelection == AutoCompleteList.Count - 1)
AutoCompleteSelection = 0;
else
AutoCompleteSelection++;
AutoCompleteShouldScroll = true;
return 1;
}
break;
} }
return 0; return 0;