From 49ec363e5cd53042368bbc5056f6d5aa57e0b0b5 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 10 Dec 2014 02:14:02 +0100 Subject: Give the keyboard focus to the view when sidebar is closed Taken from evince commit: 2bbc796272c012031832232eda2517e4517c85cd From: Carlos Garcia Campos Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=645109 --- shell/ev-window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/ev-window.c b/shell/ev-window.c index 6e01708f..12341201 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -5101,6 +5101,8 @@ ev_window_sidebar_visibility_changed_cb (EvSidebar *ev_sidebar, if (ev_window->priv->metadata) ev_metadata_set_boolean (ev_window->priv->metadata, "sidebar_visibility", visible); + if (!visible) + gtk_widget_grab_focus (ev_window->priv->view); } } -- cgit v1.2.1