Console Window: Add Shift+Tab shirtcut, similar to Up arrow

This commit is contained in:
Arnaud Jamin
2025-02-04 23:39:16 -05:00
parent 74dd726c2c
commit 882605ab2b
@@ -1,5 +1,6 @@
#include "CogEngineWindow_Console.h"
#include "CogCommon.h"
#include "CogImguiHelper.h"
#include "CogWindowManager.h"
#include "CogWindowWidgets.h"
@@ -322,6 +323,12 @@ int FCogEngineWindow_Console::OnTextInputCallback(ImGuiInputTextCallbackData* In
DoCompletion = true;
bSetBufferToSelectedCommand = false;
}
if (ImGui::IsKeyPressed(ImGuiKey_Tab) && ImGui::IsKeyDown(ImGuiKey_ReservedForModShift))
{
SelectPreviousCommand();
DoCompletion = true;
}
}
if (DoCompletion && CommandList.IsValidIndex(SelectedCommandIndex))