Passing KP_ keys to pty

Summary:
KP_Home and KP_End were ignored, skipped because _handle_key_to_pty only checked for Kk keys.
It does not look like that was a typo, so handling for both Kk and KP now in place.

Test Plan:
1. start terminology
2. type 'echo "the quick brown fox jumps over the lazy dog"'
3. press keypad Home key
4. on unpatched terminology nothing happens
5. on patched terminology the behaviour is identical to normal Home

Reviewers: billiob, #terminology, godfath3r

Reviewed By: #terminology, godfath3r

Subscribers: #terminology, godfath3r, billiob

Differential Revision: https://phab.enlightenment.org/D3496
This commit is contained in:
Stanislav Baiduzhyi 2015-12-26 11:53:01 +01:00 committed by Boris Faure
parent 904f49ccc4
commit 2f3d2a9447
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ _handle_key_to_pty(Termpty *ty, const Evas_Event_Key_Down *ev,
return;
}
}
if (ev->key[0] == 'K' && ev->key[1] == 'k')
if (ev->key[0] == 'K' && (ev->key[1] == 'k' || ev->key[1] == 'P'))
{
if (!evas_key_lock_is_set(ev->locks, "Num_Lock"))
{