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
a7a2c2e6
Commit
a7a2c2e6
authored
Jun 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Reimplement editor mode right key using command controller.
parent
b5423745
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
editor.c
dlls/mshtml/editor.c
+17
-3
No files found.
dlls/mshtml/editor.c
View file @
a7a2c2e6
...
...
@@ -39,6 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_ALIGN "cmd_align"
#define NSCMD_BOLD "cmd_bold"
#define NSCMD_CHARNEXT "cmd_charNext"
#define NSCMD_FONTCOLOR "cmd_fontColor"
#define NSCMD_FONTFACE "cmd_fontFace"
#define NSCMD_INDENT "cmd_indent"
...
...
@@ -50,12 +51,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_MOVEPAGEUP "cmd_movePageUp"
#define NSCMD_OL "cmd_ol"
#define NSCMD_OUTDENT "cmd_outdent"
#define NSCMD_SELECTCHARNEXT "cmd_selectCharNext"
#define NSCMD_SELECTLINENEXT "cmd_selectLineNext"
#define NSCMD_SELECTLINEPREVIOUS "cmd_selectLinePrevious"
#define NSCMD_SELECTPAGEDOWN "cmd_selectPageDown"
#define NSCMD_SELECTPAGEUP "cmd_selectPageUp"
#define NSCMD_SELECTPAGEUP "cmd_selectPageUp"
#define NSCMD_SELECTWORDNEXT "cmd_selectWordNext"
#define NSCMD_UL "cmd_ul"
#define NSCMD_UNDERLINE "cmd_underline"
#define NSCMD_WORDNEXT "cmd_wordNext"
#define NSSTATE_ATTRIBUTE "state_attribute"
#define NSSTATE_ALL "state_all"
...
...
@@ -602,10 +606,18 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
TRACE
(
"left
\n
"
);
collapse_next_char
(
This
,
key_event
,
FALSE
);
break
;
case
DOM_VK_RIGHT
:
case
DOM_VK_RIGHT
:
{
static
const
char
*
cmds
[]
=
{
NSCMD_CHARNEXT
,
NSCMD_WORDNEXT
,
NSCMD_SELECTCHARNEXT
,
NSCMD_SELECTWORDNEXT
};
TRACE
(
"right
\n
"
);
collapse_next_char
(
This
,
key_event
,
TRUE
);
handle_arrow_key
(
This
,
key_event
,
cmds
);
break
;
}
case
DOM_VK_UP
:
{
static
const
char
*
cmds
[]
=
{
NSCMD_LINEPREVIOUS
,
...
...
@@ -614,6 +626,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
NSCMD_SELECTPAGEUP
};
TRACE
(
"up
\n
"
);
handle_arrow_key
(
This
,
key_event
,
cmds
);
break
;
}
...
...
@@ -625,6 +638,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
NSCMD_SELECTPAGEDOWN
};
TRACE
(
"down
\n
"
);
handle_arrow_key
(
This
,
key_event
,
cmds
);
break
;
}
...
...
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