summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2016-07-03 20:48:14 +0100
committerAndy Williams <andy@andywilliams.me>2016-07-03 20:48:30 +0100
commit5c8ea3a6f3bb539da3fbc022a8fbd407d4792051 (patch)
treeb3a5976f16647b18b241e5d667b37bee880ccfd0
parent9622146c3d5ae6cc8f7810136f569575c17c4ec0 (diff)
elementary: Grab all key presses in elm_code for now
Working around issues where new key bindings were breaking the editor
-rw-r--r--src/lib/elementary/elm_code_widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 5fd9ff2845..0f2c11b0c9 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -1309,6 +1309,8 @@ _elm_code_widget_key_down_cb(void *data, Evas *evas EINA_UNUSED,
1309 return; 1309 return;
1310 } 1310 }
1311 1311
1312 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
1313
1312 if (!strcmp(ev->key, "Up")) 1314 if (!strcmp(ev->key, "Up"))
1313 _elm_code_widget_cursor_move_up(widget); 1315 _elm_code_widget_cursor_move_up(widget);
1314 else if (!strcmp(ev->key, "Down")) 1316 else if (!strcmp(ev->key, "Down"))