Add an alternative keybinding for the inspector

Control-Shift-I is already used for similar things in many
applications, so provide Control-Shift-D as an alternative.
https://bugzilla.gnome.org/show_bug.cgi?id=730043
This commit is contained in:
Matthias Clasen 2014-05-13 11:04:43 -04:00
parent f9a0a96eb4
commit 63288829b0
2 changed files with 5 additions and 3 deletions

View File

@ -535,9 +535,9 @@ nevertheless.
the theme and trigger visual debugging aids.
</para>
<para>
To enable the debugger, you can use the Control-Shift-S keybinding
or pass set the <envar>GTK_DEBUG=interactive</envar> environment
variable.
To enable the debugger, you can use the Control-Shift-I or
Control-Shift-D keyboard shortcuts, or pass set the
<envar>GTK_DEBUG=interactive</envar> environment variable.
</para>
<inlinegraphic fileref="inspector.png" format="PNG"></inlinegraphic>

View File

@ -1268,6 +1268,8 @@ gtk_window_class_init (GtkWindowClass *klass)
gtk_binding_entry_add_signal (binding_set, GDK_KEY_I, GDK_CONTROL_MASK|GDK_SHIFT_MASK,
"toggle-debugging", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_D, GDK_CONTROL_MASK|GDK_SHIFT_MASK,
"toggle-debugging", 0);
add_arrow_bindings (binding_set, GDK_KEY_Up, GTK_DIR_UP);
add_arrow_bindings (binding_set, GDK_KEY_Down, GTK_DIR_DOWN);