aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 9c6147043..77a0db07f 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -208,11 +208,35 @@ window_cmd_view_reload (EggAction *action,
EphyWindow *window)
{
EphyEmbed *embed;
+ GdkEvent *event;
+ GdkEventType type;
+ guint state = 0;
+ gboolean force = FALSE;
embed = ephy_window_get_active_embed (window);
g_return_if_fail (embed != NULL);
- ephy_embed_reload (embed, EMBED_RELOAD_NORMAL);
+ event = gtk_get_current_event ();
+ type = event->type;
+
+ if (type == GDK_BUTTON_RELEASE)
+ {
+ state = event->button.state;
+ }
+ else if (type == GDK_KEY_RELEASE)
+ {
+ state = event->key.state;
+ }
+
+ gdk_event_free (event);
+
+ if (state & GDK_SHIFT_MASK)
+ {
+ force = TRUE;
+ }
+
+ ephy_embed_reload (embed, force ? EMBED_RELOAD_NORMAL
+ : EMBED_RELOAD_BYPASSCACHE);
}
void