Skip to content

Commit

Permalink
Merge pull request teeworlds#3205 from Robyt3/CLineInput-Ctrl-Backspa…
Browse files Browse the repository at this point in the history
…ce-Fix

Delete selection with backspace/delete regardless of word mode
  • Loading branch information
oy authored Jun 29, 2023
2 parents d90dcad + 582c0d2 commit c1649f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/client/lineinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit c1649f2

Please sign in to comment.