Browse Source

Add handy shortcut: use 'Ctrl - Right Click' to go to implementation directly.

merge-requests/365/head
Ted Feng 9 years ago
parent
commit
0879bad519
  1. 8
      src/source.cc

8
src/source.cc

@ -2225,6 +2225,14 @@ bool Source::View::on_button_press_event(GdkEventButton *event) {
return true; 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)){ if((event->type == GDK_BUTTON_PRESS) && (event->button == 3)){
hide_tooltips(); hide_tooltips();
if(!get_buffer()->get_has_selection()){ if(!get_buffer()->get_has_selection()){

Loading…
Cancel
Save