summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroy <tom_adams@web.de>2023-06-29 21:10:51 +0200
committerGitHub <noreply@github.com>2023-06-29 21:10:51 +0200
commitc1649f21a6b50149ec00ddfd9a8523b4fa35b1d9 (patch)
tree03c7bdbdd81744ee26642929fd30313c860efc2d
parentd90dcadc75854163f3aa6e145ecea0e01e80a5c1 (diff)
parent582c0d23dbc13b012dde11bfe64d6031c6ac962d (diff)
Merge pull request #3205 from Robyt3/CLineInput-Ctrl-Backspace-Fix
Delete selection with backspace/delete regardless of word mode
-rw-r--r--src/game/client/lineinput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/lineinput.cpp b/src/game/client/lineinput.cpp
index 5c086aaf9..6328af0ec 100644
--- a/src/game/client/lineinput.cpp
+++ b/src/game/client/lineinput.cpp
@@ -222,7 +222,7 @@ bool CLineInput::ProcessInput(const IInput::CEvent &Event)
if(Event.m_Key == KEY_BACKSPACE)
{
- if(SelectionLength && !MoveWord)
+ if(SelectionLength)
{
SetRange("", m_SelectionStart, m_SelectionEnd);
}
@@ -242,7 +242,7 @@ bool CLineInput::ProcessInput(const IInput::CEvent &Event)
}
else if(Event.m_Key == KEY_DELETE)
{
- if(SelectionLength && !MoveWord)
+ if(SelectionLength)
{
SetRange("", m_SelectionStart, m_SelectionEnd);
}