summaryrefslogtreecommitdiff
path: root/src/bin/keyin.c
diff options
context:
space:
mode:
authorStanislav Baiduzhyi <baiduzhyi.devel@gmail.com>2015-12-26 11:53:01 +0100
committerBoris Faure <billiob@gmail.com>2015-12-26 11:53:32 +0100
commit2f3d2a9447059b9672629747ddfb98ed8cb2a939 (patch)
tree0bf948b84276e8ac48f81b799129dd75bd1edc9b /src/bin/keyin.c
parent904f49ccc4cb295a0f75cacc70c927b503302451 (diff)
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
Diffstat (limited to 'src/bin/keyin.c')
-rw-r--r--src/bin/keyin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index 4de4006..1aed059 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -147,7 +147,7 @@ _handle_key_to_pty(Termpty *ty, const Evas_Event_Key_Down *ev,
147 return; 147 return;
148 } 148 }
149 } 149 }
150 if (ev->key[0] == 'K' && ev->key[1] == 'k') 150 if (ev->key[0] == 'K' && (ev->key[1] == 'k' || ev->key[1] == 'P'))
151 { 151 {
152 if (!evas_key_lock_is_set(ev->locks, "Num_Lock")) 152 if (!evas_key_lock_is_set(ev->locks, "Num_Lock"))
153 { 153 {