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
a7fb6c89
Commit
a7fb6c89
authored
Jun 04, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Send TVN_KEYDOWN in response of WM_KEYDOWN.
parent
3f8bda94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
treeview.c
dlls/comctl32/tests/treeview.c
+2
-2
treeview.c
dlls/comctl32/treeview.c
+5
-1
No files found.
dlls/comctl32/tests/treeview.c
View file @
a7fb6c89
...
@@ -206,7 +206,7 @@ static const struct message parent_expand_seq[] = {
...
@@ -206,7 +206,7 @@ static const struct message parent_expand_seq[] = {
};
};
static
const
struct
message
parent_expand_kb_seq
[]
=
{
static
const
struct
message
parent_expand_kb_seq
[]
=
{
{
WM_NOTIFY
,
sent
|
id
|
optional
,
0
,
0
,
TVN_KEYDOWN
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
TVN_KEYDOWN
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
TVN_ITEMEXPANDINGA
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
TVN_ITEMEXPANDINGA
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
TVN_ITEMEXPANDEDA
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
TVN_ITEMEXPANDEDA
},
{
WM_CHANGEUISTATE
,
sent
|
optional
},
{
WM_CHANGEUISTATE
,
sent
|
optional
},
...
@@ -221,7 +221,7 @@ static const struct message parent_collapse_2nd_kb_seq[] = {
...
@@ -221,7 +221,7 @@ static const struct message parent_collapse_2nd_kb_seq[] = {
};
};
static
const
struct
message
parent_expand_empty_kb_seq
[]
=
{
static
const
struct
message
parent_expand_empty_kb_seq
[]
=
{
{
WM_NOTIFY
,
sent
|
id
|
optional
,
0
,
0
,
TVN_KEYDOWN
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
TVN_KEYDOWN
},
{
WM_CHANGEUISTATE
,
sent
|
optional
},
{
WM_CHANGEUISTATE
,
sent
|
optional
},
{
0
}
{
0
}
};
};
...
...
dlls/comctl32/treeview.c
View file @
a7fb6c89
...
@@ -5201,11 +5201,15 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
...
@@ -5201,11 +5201,15 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
{
{
/* If it is non-NULL and different, it will be selected and visible. */
/* If it is non-NULL and different, it will be selected and visible. */
TREEVIEW_ITEM
*
newSelection
=
NULL
;
TREEVIEW_ITEM
*
newSelection
=
NULL
;
TREEVIEW_ITEM
*
prevItem
=
infoPtr
->
selectedItem
;
TREEVIEW_ITEM
*
prevItem
=
infoPtr
->
selectedItem
;
NMTVKEYDOWN
nmkeydown
;
TRACE
(
"%lx
\n
"
,
wParam
);
TRACE
(
"%lx
\n
"
,
wParam
);
nmkeydown
.
wVKey
=
wParam
;
nmkeydown
.
flags
=
0
;
TREEVIEW_SendRealNotify
(
infoPtr
,
TVN_KEYDOWN
,
&
nmkeydown
.
hdr
);
if
(
prevItem
==
NULL
)
if
(
prevItem
==
NULL
)
return
FALSE
;
return
FALSE
;
...
...
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