diff options
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r-- | src/sc_editor.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c index db0f11d..721626e 100644 --- a/src/sc_editor.c +++ b/src/sc_editor.c @@ -42,6 +42,7 @@ #include "sc_interp.h" #include "sc_editor.h" #include "slideshow.h" +#include "debugger.h" static void scroll_interface_init(GtkScrollable *iface) @@ -1495,11 +1496,13 @@ static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, break; case GDK_KEY_F7 : - debug_paragraphs(e); - break; - - case GDK_KEY_F8 : - show_sc_blocks(e->scblocks); + if ( event->state == GDK_CONTROL_MASK ) { + debug_paragraphs(e); + } else if ( event->state == GDK_SHIFT_MASK ) { + show_sc_blocks(e->scblocks); + } else { + open_debugger(e->cursor_frame); + } break; case GDK_KEY_C : |