Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
483116a8
Commit
483116a8
authored
Apr 14, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Handle ctrl + end in edit control.
parent
dfdd9290
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
edit.c
dlls/user32/edit.c
+5
-5
No files found.
dlls/user32/edit.c
View file @
483116a8
...
...
@@ -211,7 +211,7 @@ static void EDIT_LockBuffer(EDITSTATE *es);
static
BOOL
EDIT_MakeFit
(
EDITSTATE
*
es
,
UINT
size
);
static
BOOL
EDIT_MakeUndoFit
(
EDITSTATE
*
es
,
UINT
size
);
static
void
EDIT_MoveBackward
(
EDITSTATE
*
es
,
BOOL
extend
);
static
void
EDIT_MoveEnd
(
EDITSTATE
*
es
,
BOOL
extend
);
static
void
EDIT_MoveEnd
(
EDITSTATE
*
es
,
BOOL
extend
,
BOOL
ctrl
);
static
void
EDIT_MoveForward
(
EDITSTATE
*
es
,
BOOL
extend
);
static
void
EDIT_MoveHome
(
EDITSTATE
*
es
,
BOOL
extend
,
BOOL
ctrl
);
static
void
EDIT_MoveWordBackward
(
EDITSTATE
*
es
,
BOOL
extend
);
...
...
@@ -2012,13 +2012,13 @@ static void EDIT_MoveDown_ML(EDITSTATE *es, BOOL extend)
* EDIT_MoveEnd
*
*/
static
void
EDIT_MoveEnd
(
EDITSTATE
*
es
,
BOOL
extend
)
static
void
EDIT_MoveEnd
(
EDITSTATE
*
es
,
BOOL
extend
,
BOOL
ctrl
)
{
BOOL
after_wrap
=
FALSE
;
INT
e
;
/* Pass a high value in x to make sure of receiving the end of the line */
if
(
es
->
style
&
ES_MULTILINE
)
if
(
!
ctrl
&&
(
es
->
style
&
ES_MULTILINE
)
)
e
=
EDIT_CharFromPos
(
es
,
0x3fffffff
,
HIWORD
(
EDIT_EM_PosFromChar
(
es
,
es
->
selection_end
,
es
->
flags
&
EF_AFTER_WRAP
)),
&
after_wrap
);
else
...
...
@@ -4568,7 +4568,7 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
EDIT_MoveHome
(
es
,
shift
,
control
);
break
;
case
VK_END
:
EDIT_MoveEnd
(
es
,
shift
);
EDIT_MoveEnd
(
es
,
shift
,
control
);
break
;
case
VK_PRIOR
:
if
(
es
->
style
&
ES_MULTILINE
)
...
...
@@ -4598,7 +4598,7 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
}
else
if
(
control
)
{
/* delete to end of line */
EDIT_EM_SetSel
(
es
,
(
UINT
)
-
1
,
0
,
FALSE
);
EDIT_MoveEnd
(
es
,
TRUE
);
EDIT_MoveEnd
(
es
,
TRUE
,
FALSE
);
EDIT_WM_Clear
(
es
);
}
else
{
/* delete character right of caret */
...
...
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