Could not delete a selection using backspace if that selection started
at the first character. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7644 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -184,9 +184,10 @@ FindTextView::KeyDown(const char *bytes, int32 numBytes)
|
||||
GetSelection(&start, &end);
|
||||
|
||||
if (bytes[0] == B_BACKSPACE) {
|
||||
start--;
|
||||
if (start < 0)
|
||||
if (--start < 0 && end == 0)
|
||||
return;
|
||||
|
||||
start = 0;
|
||||
}
|
||||
|
||||
if (Text()[start] == ' ')
|
||||
|
||||
Reference in New Issue
Block a user