[gtkhtml/gnome-3-4] Bug #666850 - Grab focus on context menu popup in editor
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml/gnome-3-4] Bug #666850 - Grab focus on context menu popup in editor
- Date: Fri, 6 Apr 2012 18:06:18 +0000 (UTC)
commit 51b708afb071f39569810d0c6ce7db07e193f82a
Author: Milan Crha <mcrha redhat com>
Date: Fri Apr 6 20:05:53 2012 +0200
Bug #666850 - Grab focus on context menu popup in editor
components/editor/gtkhtml-editor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/components/editor/gtkhtml-editor.c b/components/editor/gtkhtml-editor.c
index 6881c41..1611ce2 100644
--- a/components/editor/gtkhtml-editor.c
+++ b/components/editor/gtkhtml-editor.c
@@ -69,6 +69,8 @@ editor_show_popup_menu (GtkhtmlEditor *editor,
html = gtkhtml_editor_get_html (editor);
menu = gtkhtml_editor_get_managed_widget (editor, "/context-menu");
+ gtk_widget_grab_focus (GTK_WIDGET (html));
+
/* Did we right-click in a selection? */
in_selection =
html_engine_is_selection_active (html->engine) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]