Fix Plugin Admin close issue after typing ENTER
Prevent closing the PA-dlg by ENTER in search editctrl. Ref: https://support.microsoft.com/en-us/topic/how-to-use-the-enter-key-from-edit-controls-in-a-dialog-box-a520c533-1a62-f51c-af93-c7f978bc1080 Fixes: #11348, close #11351
This commit is contained in:
parent
f6ea35d521
commit
4593293b4d
|
@ -1140,8 +1140,12 @@ intptr_t CALLBACK PluginsAdminDlg::run_dlgProc(UINT message, WPARAM wParam, LPAR
|
|||
|
||||
switch (wParam)
|
||||
{
|
||||
case IDCANCEL :
|
||||
case IDOK :
|
||||
case IDOK:
|
||||
if (::GetFocus() == ::GetDlgItem(_hSelf, IDC_PLUGINADM_SEARCH_EDIT))
|
||||
::PostMessage(_hSelf, WM_NEXTDLGCTL, 0, 0L);
|
||||
return TRUE;
|
||||
|
||||
case IDCANCEL:
|
||||
display(false);
|
||||
return TRUE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue