summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/elm_code_widget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 1406254fd1..a54bfb92b9 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -863,6 +863,7 @@ _elm_code_widget_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj
863 Elm_Code_Widget *widget; 863 Elm_Code_Widget *widget;
864 Elm_Code_Widget_Data *pd; 864 Elm_Code_Widget_Data *pd;
865 Evas_Event_Mouse_Down *event; 865 Evas_Event_Mouse_Down *event;
866 Eina_Bool ctrl;
866 unsigned int row; 867 unsigned int row;
867 int col; 868 int col;
868 869
@@ -871,7 +872,8 @@ _elm_code_widget_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj
871 event = (Evas_Event_Mouse_Down *)event_info; 872 event = (Evas_Event_Mouse_Down *)event_info;
872 _elm_code_widget_position_at_coordinates_get(widget, pd, event->canvas.x, event->canvas.y, &row, &col); 873 _elm_code_widget_position_at_coordinates_get(widget, pd, event->canvas.x, event->canvas.y, &row, &col);
873 874
874 if (event->button == 3) 875 ctrl = evas_key_modifier_is_set(event->modifiers, "Control");
876 if (event->button == 3 && !ctrl)
875 { 877 {
876 _popup_menu_show(widget, event->canvas.x, event->canvas.y); 878 _popup_menu_show(widget, event->canvas.x, event->canvas.y);
877 return; 879 return;