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
31d51d48
Commit
31d51d48
authored
Feb 23, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for CONTEXT_MENU_TEXTSELECT context menu type.
parent
10148677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
nsembed.c
dlls/mshtml/nsembed.c
+14
-2
No files found.
dlls/mshtml/nsembed.c
View file @
31d51d48
...
...
@@ -1490,9 +1490,21 @@ static nsresult NSAPI nsContextMenuListener_OnShowContextMenu(nsIContextMenuList
switch
(
aContextFlags
)
{
case
CONTEXT_NONE
:
case
CONTEXT_DOCUMENT
:
case
CONTEXT_TEXT
:
dwID
=
CONTEXT_MENU_DEFAULT
;
case
CONTEXT_TEXT
:
{
nsISelection
*
selection
;
nsres
=
nsIDOMHTMLDocument_GetSelection
(
This
->
doc
->
basedoc
.
doc_node
->
nsdoc
,
&
selection
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
selection
)
{
cpp_bool
is_collapsed
;
/* FIXME: Check if the click was inside selection. */
nsres
=
nsISelection_GetIsCollapsed
(
selection
,
&
is_collapsed
);
nsISelection_Release
(
selection
);
if
(
NS_SUCCEEDED
(
nsres
)
&&
!
is_collapsed
)
dwID
=
CONTEXT_MENU_TEXTSELECT
;
}
break
;
}
case
CONTEXT_IMAGE
:
case
CONTEXT_IMAGE
|
CONTEXT_LINK
:
dwID
=
CONTEXT_MENU_IMAGE
;
...
...
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