Skip to content

Commit 0ab83bf

Browse files
authored
Unhook the mouse down hook at the end of PropertyGridView.ProcessEnumUpAndDown (#12508)
* Unhook the mouse down hook at the end of PropertyGridView.ProcessEnumUpAndDown * Removing ? from code line "EditTextBox?.SelectAll();"
1 parent 65240b1 commit 0ab83bf

File tree

1 file changed

+2
-1
lines changed
  • src/System.Windows.Forms/src/System/Windows/Forms/Controls/PropertyGrid/PropertyGridInternal

1 file changed

+2
-1
lines changed

src/System.Windows.Forms/src/System/Windows/Forms/Controls/PropertyGrid/PropertyGridInternal/PropertyGridView.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,8 @@ private bool ProcessEnumUpAndDown(GridEntry entry, Keys keyCode, bool closeDropD
24752475
}
24762476

24772477
CommitValue(entry, valueNew, closeDropDown);
2478-
EditTextBox?.SelectAll();
2478+
EditTextBox.HookMouseDown = false;
2479+
EditTextBox.SelectAll();
24792480
return true;
24802481
}
24812482

0 commit comments

Comments
 (0)