From 0879bad51911c687e581eb65bb409f91effaf296 Mon Sep 17 00:00:00 2001 From: Ted Feng Date: Mon, 13 Feb 2017 17:06:47 +1300 Subject: [PATCH] Add handy shortcut: use 'Ctrl - Right Click' to go to implementation directly. --- src/source.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/source.cc b/src/source.cc index b5a8951..314da18 100644 --- a/src/source.cc +++ b/src/source.cc @@ -2224,7 +2224,15 @@ bool Source::View::on_button_press_event(GdkEventButton *event) { get_buffer()->select_range(start, end); return true; } - + + if((event->type == GDK_BUTTON_PRESS) && (event->button == 1)){ + if(event->state & GDK_CONTROL_MASK) { + hide_tooltips(); + Menu::get().actions["source_goto_implementation"]->activate(); + return true; + } + } + if((event->type == GDK_BUTTON_PRESS) && (event->button == 3)){ hide_tooltips(); if(!get_buffer()->get_has_selection()){