from cipp -> alt cursor key handling

SVN revision: 72465
This commit is contained in:
Carsten Haitzler 2012-06-19 09:57:38 +00:00
parent 4d5261b991
commit eff8baf961
1 changed files with 15 additions and 0 deletions

View File

@ -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;