mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-04 06:38:45 +00:00
Console Window: Add Shift+Tab shirtcut, similar to Up arrow
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include "CogEngineWindow_Console.h"
|
#include "CogEngineWindow_Console.h"
|
||||||
|
|
||||||
|
#include "CogCommon.h"
|
||||||
#include "CogImguiHelper.h"
|
#include "CogImguiHelper.h"
|
||||||
#include "CogWindowManager.h"
|
#include "CogWindowManager.h"
|
||||||
#include "CogWindowWidgets.h"
|
#include "CogWindowWidgets.h"
|
||||||
@@ -322,6 +323,12 @@ int FCogEngineWindow_Console::OnTextInputCallback(ImGuiInputTextCallbackData* In
|
|||||||
DoCompletion = true;
|
DoCompletion = true;
|
||||||
bSetBufferToSelectedCommand = false;
|
bSetBufferToSelectedCommand = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ImGui::IsKeyPressed(ImGuiKey_Tab) && ImGui::IsKeyDown(ImGuiKey_ReservedForModShift))
|
||||||
|
{
|
||||||
|
SelectPreviousCommand();
|
||||||
|
DoCompletion = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DoCompletion && CommandList.IsValidIndex(SelectedCommandIndex))
|
if (DoCompletion && CommandList.IsValidIndex(SelectedCommandIndex))
|
||||||
|
|||||||
Reference in New Issue
Block a user