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
f7062d1d
Commit
f7062d1d
authored
Feb 05, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/edit: Handle Ctrl-A shortcut as select all command.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73cd9809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
edit.c
dlls/comctl32/edit.c
+16
-1
No files found.
dlls/comctl32/edit.c
View file @
f7062d1d
...
...
@@ -1477,12 +1477,15 @@ static void EDIT_InvalidateText(EDITSTATE *es, INT start, INT end)
* In other words: this handler is OK
*
*/
static
void
EDIT_EM_SetSel
(
EDITSTATE
*
es
,
UINT
start
,
UINT
end
,
BOOL
after_wrap
)
static
BOOL
EDIT_EM_SetSel
(
EDITSTATE
*
es
,
UINT
start
,
UINT
end
,
BOOL
after_wrap
)
{
UINT
old_start
=
es
->
selection_start
;
UINT
old_end
=
es
->
selection_end
;
UINT
len
=
get_text_length
(
es
);
if
(
start
==
old_start
&&
end
==
old_end
)
return
FALSE
;
if
(
start
==
(
UINT
)
-
1
)
{
start
=
es
->
selection_end
;
end
=
es
->
selection_end
;
...
...
@@ -1535,6 +1538,8 @@ static void EDIT_EM_SetSel(EDITSTATE *es, UINT start, UINT end, BOOL after_wrap)
}
}
else
EDIT_InvalidateText
(
es
,
start
,
old_end
);
return
TRUE
;
}
...
...
@@ -3365,6 +3370,16 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
if
((
es
->
style
&
ES_MULTILINE
)
&&
EDIT_IsInsideDialog
(
es
))
SendMessageW
(
es
->
hwndParent
,
WM_NEXTDLGCTL
,
shift
,
0
);
break
;
case
'A'
:
if
(
control
)
{
if
(
EDIT_EM_SetSel
(
es
,
0
,
get_text_length
(
es
),
FALSE
))
{
EDIT_NOTIFY_PARENT
(
es
,
EN_UPDATE
);
EDIT_NOTIFY_PARENT
(
es
,
EN_CHANGE
);
}
}
break
;
}
return
TRUE
;
}
...
...
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