ui: only use help lookup if control pressed

This commit is contained in:
Andy Williams 2016-09-11 19:17:21 +01:00
parent 61284cfa1a
commit 1578481d46
1 changed files with 3 additions and 1 deletions

View File

@ -473,6 +473,7 @@ _mouse_up_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
Elm_Code_Widget *widget;
Evas_Object *popup;
Evas_Event_Mouse_Up *event;
Eina_Bool ctrl;
unsigned int row;
int col;
const char *word;
@ -480,7 +481,8 @@ _mouse_up_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
widget = (Elm_Code_Widget *)data;
event = (Evas_Event_Mouse_Up *)event_info;
if (event->button != 3)
ctrl = evas_key_modifier_is_set(event->modifiers, "Control");
if (event->button != 3 || !ctrl)
return;
elm_code_widget_position_at_coordinates_get(widget, event->canvas.x, event->canvas.y, &row, &col);