Remove TreeView Beep when pressing return key

Fix #8938, close #8940
This commit is contained in:
Udo Hoffmann 2020-10-01 18:39:57 +02:00 committed by Don HO
parent 8c1e15377f
commit fc470152e1
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
3 changed files with 11 additions and 0 deletions

View File

@ -633,6 +633,9 @@ void FileBrowser::notified(LPNMHDR notification)
}
break;
case NM_RETURN:
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1);
break;
case TVN_KEYDOWN:
{

View File

@ -561,6 +561,10 @@ void FunctionListPanel::notified(LPNMHDR notification)
}
break;
case NM_RETURN:
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1);
break;
case TVN_KEYDOWN:
{
LPNMTVKEYDOWN ptvkd = (LPNMTVKEYDOWN)notification;

View File

@ -628,6 +628,10 @@ void ProjectPanel::notified(LPNMHDR notification)
openSelectFile();
}
break;
case NM_RETURN:
SetWindowLongPtr(_hSelf, DWLP_MSGRESULT, 1);
break;
case TVN_ENDLABELEDIT:
{