aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/mozilla-embed.cpp13
2 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5528d1998..726e0f2db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2003-07-10 Marco Pesenti Gritti <marco@it.gnome.org>
+ * embed/mozilla/mozilla-embed.cpp:
+
+ Show the doc context menu on ctrl+f10
+
+2003-07-10 Marco Pesenti Gritti <marco@it.gnome.org>
+
* src/bookmarks/ephy-bookmarks-export.c: (add_topics_list),
(ephy_bookmarks_export_rdf):
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 941698dfe..40d7bc8a8 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -1349,9 +1349,11 @@ mozilla_embed_dom_key_down_cb (GtkMozEmbed *embed, gpointer dom_event,
EventContext ctx;
ctx.Init (wrapper);
rv = ctx.GetKeyEventInfo (ev, info);
- if (NS_SUCCEEDED(rv) &&
- (info->keycode == nsIDOMKeyEvent::DOM_VK_F10 &&
- info->modifier == GDK_SHIFT_MASK))
+ if (NS_FAILED (rv)) return G_FAILED;
+
+ if (info->keycode == nsIDOMKeyEvent::DOM_VK_F10 &&
+ (info->modifier == GDK_SHIFT_MASK ||
+ info->modifier == GDK_CONTROL_MASK))
{
/* Translate relative coordinates to absolute values, and try
to avoid covering links by adding a little offset. */
@@ -1361,6 +1363,11 @@ mozilla_embed_dom_key_down_cb (GtkMozEmbed *embed, gpointer dom_event,
info->x += x + 6;
info->y += y + 6;
+ if (info->modifier == GDK_CONTROL_MASK)
+ {
+ info->context = EMBED_CONTEXT_DOCUMENT;
+ }
+
nsCOMPtr<nsIDOMDocument> doc;
rv = ctx.GetTargetDocument (getter_AddRefs(doc));
if (NS_SUCCEEDED(rv))