Skip to content

Commit 7da203b

Browse files
authored
fixes #4139
1 parent f3f026d commit 7da203b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Rubberduck.Core/AutoComplete/AutoCompleteService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private void HandleKeyDown(object sender, AutoCompleteEventArgs e)
5959
var qualifiedSelection = module.GetQualifiedSelection();
6060
var pSelection = qualifiedSelection.Value.Selection;
6161

62-
if (_popupShown || (e.Keys != Keys.None && pSelection.LineCount > 1))
62+
if (_popupShown || (e.Keys != Keys.None && pSelection.LineCount > 1) || e.Keys == Keys.Delete)
6363
{
6464
return;
6565
}
@@ -78,7 +78,6 @@ private void HandleKeyDown(object sender, AutoCompleteEventArgs e)
7878
}
7979
}
8080

81-
var handleDelete = e.Keys == Keys.Delete && pSelection.EndColumn <= currentContent.Length;
8281
var handleBackspace = e.Keys == Keys.Back && pSelection.StartColumn > 1;
8382
var handleTab = e.Keys == Keys.Tab && !pSelection.IsSingleCharacter;
8483
var handleEnter = e.Keys == Keys.Enter && !pSelection.IsSingleCharacter;

0 commit comments

Comments
 (0)