diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 11 |
2 files changed, 16 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2004-03-06 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/mozilla-embed.cpp: + + Also pop up the context menu with the menu key. + +2004-03-06 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-main.c: (main): Persist changed accels with gnome_accelerator_sync(). diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index fda58e858..89309eab7 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -18,6 +18,10 @@ * $Id$ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "mozilla-embed.h" #include "mozilla-embed-event.h" #include "ephy-embed-shell.h" @@ -832,9 +836,14 @@ mozilla_embed_dom_key_down_cb (GtkMozEmbed *embed, gpointer dom_event, rv = ctx.GetKeyEventInfo (ev, info); if (NS_FAILED (rv)) return ret; - if (info->keycode == nsIDOMKeyEvent::DOM_VK_F10 && + if ((info->keycode == nsIDOMKeyEvent::DOM_VK_F10 && (info->modifier == GDK_SHIFT_MASK || info->modifier == GDK_CONTROL_MASK)) +#if MOZILLA_SNAPSHOT > 14 + || (info->keycode == nsIDOMKeyEvent::DOM_VK_CONTEXT_MENU && + !info->modifier) +#endif + ) { /* Translate relative coordinates to absolute values, and try to avoid covering links by adding a little offset. */ |