From 2073793fcdd6c17ef4386b04785f519166111427 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 10 Nov 2023 22:25:39 +0100 Subject: [PATCH] impr: Make backspace work while holding shift in the text editor Closes #1409 --- lib/external/imgui/source/TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/external/imgui/source/TextEditor.cpp b/lib/external/imgui/source/TextEditor.cpp index 32820add5..619e105eb 100644 --- a/lib/external/imgui/source/TextEditor.cpp +++ b/lib/external/imgui/source/TextEditor.cpp @@ -642,7 +642,7 @@ void TextEditor::HandleKeyboardInputs() { SetSelection(wordStart, wordEnd); Backspace(); } - else if (!IsReadOnly() && !ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Backspace))) + else if (!IsReadOnly() && !ctrl && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Backspace))) Backspace(); else if (!IsReadOnly() && ctrl && !shift && !alt && ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Backspace))) { auto wordEnd = GetCursorPosition();