1
0
mirror of synced 2025-01-29 19:17:28 +01:00

impr: Make backspace work while holding shift in the text editor

Closes #1409
This commit is contained in:
WerWolv 2023-11-10 22:25:39 +01:00
parent 388523a4ea
commit 2073793fcd

View File

@ -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();