GNOME Bugzilla – Bug 676870
Switching on webInspector is not obvious
Last modified: 2016-06-01 14:48:08 UTC
only one way i fond to toggle on web inspector is click "inspect element" in context menu. I suggest two more ways to toggle it on: keyboard shortcut(F12 like in firebug or ctrl+shift+i like in chrome) and action in the main menu.
I agree: I'd love to have a keyboard shortcut that opens the Web inspector.
Created attachment 328771 [details] Allow to toggle the Web Inspector with keyboard shortcuts. This maps the keyboard shortcuts CTRL+SHIFT+I and F12 (these are standard ones as are used also on Chromium, Firefox and Safari). It keeps track also of whether the Inspector window is loaded or not, so the keyboard shortcut closes the inspector window when it is already loaded on a given tab.
Review of attachment 328771 [details]: ::: embed/ephy-embed.c @@ +787,2 @@ /* The inspector */ + embed->inspector_loaded = FALSE; I think ephy_embed_init is a better place to do this, since it doesn't require construction to have been completed first. @@ +947,3 @@ + * @embed: a #EphyEmbed + * + * Checks if the Web Inspector is loaded on this this #EphyEmbed. Change "on" to "in" and get rid of the extra "this" ::: src/window-commands.c @@ +1373,3 @@ + view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed); + + inspector_window = webkit_web_view_get_inspector(view); Missing space before opening parenthesis, here and in each of the new lines below.
(CCing Iulian since this adds a new GtkAction to get rid of.)
Created attachment 328888 [details] [review] Allow to toggle the Web Inspector with keyboard shortcuts. (v2) This maps the keyboard shortcuts CTRL+SHIFT+I and F12 (these are standard ones as are used also on Chromium, Firefox and Safari). It keeps track also of whether the Inspector window is loaded or not, so the keyboard shortcut closes the inspector window when it is already loaded on a given tab. -- This is V2 addressing previous reviewer commits.