user32: Handle VK_TAB in EDIT_WM_KeyDown.
This commit is contained in:
parent
dfbb2fc9e0
commit
95f323ed46
|
@ -1094,7 +1094,7 @@ BOOL WINAPI IsDialogMessageW( HWND hwndDlg, LPMSG msg )
|
|||
{
|
||||
case WM_KEYDOWN:
|
||||
dlgCode = SendMessageW( msg->hwnd, WM_GETDLGCODE, msg->wParam, (LPARAM)msg );
|
||||
if (dlgCode & (DLGC_WANTCHARS|DLGC_WANTMESSAGE)) break;
|
||||
if (dlgCode & (DLGC_WANTMESSAGE)) break;
|
||||
|
||||
switch(msg->wParam)
|
||||
{
|
||||
|
|
|
@ -814,9 +814,6 @@ static LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg,
|
|||
case VK_ESCAPE:
|
||||
SendMessageW(GetParent(hwnd), WM_CLOSE, 0, 0);
|
||||
break;
|
||||
case VK_TAB:
|
||||
SendMessageW(GetParent(hwnd), WM_NEXTDLGCTL, (GetKeyState(VK_SHIFT) & 0x8000), 0);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -4639,6 +4636,9 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
|
|||
if (!(es->style & ES_MULTILINE))
|
||||
SendMessageW(GetParent(es->hwndSelf), WM_COMMAND, IDCANCEL, (LPARAM)GetDlgItem( GetParent(es->hwndSelf), IDCANCEL ) );
|
||||
break;
|
||||
case VK_TAB:
|
||||
SendMessageW(es->hwndParent, WM_NEXTDLGCTL, shift, 0);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue