Browse Source

Merge branch 'ctrl_right_click_goto_implementation' of https://github.com/artisdom/jucipp

merge-requests/365/head
eidheim 9 years ago
parent
commit
c418be18bc
  1. 10
      src/source.cc

10
src/source.cc

@ -2229,7 +2229,15 @@ bool Source::View::on_button_press_event(GdkEventButton *event) {
get_buffer()->select_range(start, end); get_buffer()->select_range(start, end);
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