Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d4707dbb
Commit
d4707dbb
authored
Aug 24, 2009
by
Sergey Khodych
Committed by
Alexandre Julliard
Aug 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: edit: Improve handling of WM_KEYDOWN VK_TAB in a dialog mode.
parent
3b6ea114
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
edit.c
dlls/user32/edit.c
+2
-1
edit.c
dlls/user32/tests/edit.c
+29
-0
No files found.
dlls/user32/edit.c
View file @
d4707dbb
...
...
@@ -3641,7 +3641,8 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
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
;
...
...
dlls/user32/tests/edit.c
View file @
d4707dbb
...
...
@@ -2192,12 +2192,36 @@ static void test_dialogmode(void)
test_dm_messages
(
0
,
0
,
0
,
0
);
zero_dm_messages
();
r
=
SendMessage
(
hwEdit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
ok
(
1
==
r
,
"expected 1, got %d
\n
"
,
r
);
test_dm_messages
(
0
,
0
,
0
,
0
);
zero_dm_messages
();
msg
.
hwnd
=
hwEdit
;
msg
.
message
=
WM_KEYDOWN
;
msg
.
wParam
=
VK_TAB
;
msg
.
lParam
=
0xf0001
;
r
=
SendMessage
(
hwEdit
,
WM_GETDLGCODE
,
VK_TAB
,
(
LPARAM
)
&
msg
);
ok
(
0x89
==
r
,
"expected 0x89, got 0x%x
\n
"
,
r
);
test_dm_messages
(
0
,
0
,
0
,
0
);
zero_dm_messages
();
r
=
SendMessage
(
hwEdit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
ok
(
1
==
r
,
"expected 1, got %d
\n
"
,
r
);
test_dm_messages
(
0
,
0
,
0
,
0
);
zero_dm_messages
();
destroy_child_editcontrol
(
hwEdit
);
hwEdit
=
create_child_editcontrol
(
ES_MULTILINE
,
0
);
hwParent
=
GetParent
(
hwEdit
);
SetWindowLongPtr
(
hwParent
,
GWLP_WNDPROC
,
(
LONG_PTR
)
dialog_mode_wnd_proc
);
r
=
SendMessage
(
hwEdit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
ok
(
1
==
r
,
"expected 1, got %d
\n
"
,
r
);
test_dm_messages
(
0
,
0
,
0
,
0
);
zero_dm_messages
();
msg
.
hwnd
=
hwEdit
;
msg
.
message
=
WM_KEYDOWN
;
msg
.
wParam
=
VK_ESCAPE
;
...
...
@@ -2212,6 +2236,11 @@ static void test_dialogmode(void)
test_dm_messages
(
0
,
0
,
0
,
0
);
zero_dm_messages
();
r
=
SendMessage
(
hwEdit
,
WM_KEYDOWN
,
VK_TAB
,
0xf0001
);
ok
(
1
==
r
,
"expected 1, got %d
\n
"
,
r
);
test_dm_messages
(
0
,
0
,
0
,
1
);
zero_dm_messages
();
destroy_child_editcontrol
(
hwEdit
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment