user32: edit: Improve handling of WM_KEYDOWN VK_TAB in a dialog mode.
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index a96120a..eef07da 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -3641,7 +3641,8 @@
                 PostMessageW(es->hwndParent, WM_CLOSE, 0, 0);
             break;
         case VK_TAB:
-            SendMessageW(es->hwndParent, WM_NEXTDLGCTL, shift, 0);
+            if ((es->style & ES_MULTILINE) && EDIT_IsInsideDialog(es))
+                SendMessageW(es->hwndParent, WM_NEXTDLGCTL, shift, 0);
             break;
 	}
         return TRUE;