Added tab support to Auto completion box

This commit is contained in:
aemsle
2024-09-05 00:17:47 +01:00
parent 0ea648ad6d
commit 9ad613a702
+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;