From 62eef577d3a79b75e3c432866935cbfbc1161fcd Mon Sep 17 00:00:00 2001 From: raster Date: Tue, 19 Jun 2012 09:57:38 +0000 Subject: [PATCH] from cipp -> alt cursor key handling git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@72465 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/keyin.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/bin/keyin.c b/src/bin/keyin.c index dda8c51..7b9230c 100644 --- a/src/bin/keyin.c +++ b/src/bin/keyin.c @@ -58,6 +58,16 @@ static const Keyout shift_keyout[] = KEY(NULL, "END") }; +static const Keyout alt_keyout[] = +{ + KEY("Left", "\033[1;3D"), + KEY("Right", "\033[1;3C"), + KEY("Up", "\033[1;3A"), + KEY("Down", "\033[1;3B"), + + KEY(NULL, "END") +}; + static const Keyout keyout[] = { KEY("BackSpace", "\177"), @@ -237,6 +247,11 @@ keyin_handle(Termpty *ty, Evas_Event_Key_Down *ev) if (_key_try(ty, shift_keyout, ev)) return; } + else if (evas_key_modifier_is_set(ev->modifiers, "Alt")) + { + if (_key_try(ty, alt_keyout, ev)) return; + } + if (ty->state.appcursor) { if (_key_try(ty, appcur_keyout, ev)) return; -- 2.7.4