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
a8e59b1c
Commit
a8e59b1c
authored
Jan 03, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jan 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Listview - allow selection toggle with ctrl+space.
parent
624e0287
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
listview.c
dlls/comctl32/listview.c
+14
-1
No files found.
dlls/comctl32/listview.c
View file @
a8e59b1c
...
...
@@ -3173,6 +3173,7 @@ static BOOL LISTVIEW_KeySelection(LISTVIEW_INFO *infoPtr, INT nItem)
WORD
wCtrl
=
HIWORD
(
GetKeyState
(
VK_CONTROL
));
BOOL
bResult
=
FALSE
;
TRACE
(
"nItem=%d, wShift=%d, wCtrl=%d
\n
"
,
nItem
,
wShift
,
wCtrl
);
if
((
nItem
>=
0
)
&&
(
nItem
<
infoPtr
->
nItemCount
))
{
if
(
infoPtr
->
dwStyle
&
LVS_SINGLESEL
)
...
...
@@ -3189,6 +3190,14 @@ static BOOL LISTVIEW_KeySelection(LISTVIEW_INFO *infoPtr, INT nItem)
}
else
if
(
wCtrl
)
{
LVITEMW
lvItem
;
lvItem
.
state
=
~
LISTVIEW_GetItemState
(
infoPtr
,
nItem
,
LVIS_SELECTED
);
lvItem
.
stateMask
=
LVIS_SELECTED
;
LISTVIEW_SetItemState
(
infoPtr
,
nItem
,
&
lvItem
);
if
(
lvItem
.
state
&
LVIS_SELECTED
)
infoPtr
->
nSelectionMark
=
nItem
;
bResult
=
LISTVIEW_SetItemFocus
(
infoPtr
,
nItem
);
}
else
...
...
@@ -8016,6 +8025,10 @@ static LRESULT LISTVIEW_KeyDown(LISTVIEW_INFO *infoPtr, INT nVirtualKey, LONG lK
switch
(
nVirtualKey
)
{
case
VK_SPACE
:
nItem
=
infoPtr
->
nFocusedItem
;
break
;
case
VK_RETURN
:
if
((
infoPtr
->
nItemCount
>
0
)
&&
(
infoPtr
->
nFocusedItem
!=
-
1
))
{
...
...
@@ -8082,7 +8095,7 @@ static LRESULT LISTVIEW_KeyDown(LISTVIEW_INFO *infoPtr, INT nVirtualKey, LONG lK
break
;
}
if
((
nItem
!=
-
1
)
&&
(
nItem
!=
infoPtr
->
nFocusedItem
))
if
((
nItem
!=
-
1
)
&&
(
nItem
!=
infoPtr
->
nFocusedItem
||
nVirtualKey
==
VK_SPACE
))
LISTVIEW_KeySelection
(
infoPtr
,
nItem
);
return
0
;
...
...
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