billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=2f3d2a9447059b9672629747ddfb98ed8cb2a939

commit 2f3d2a9447059b9672629747ddfb98ed8cb2a939
Author: Stanislav Baiduzhyi <baiduzhyi.de...@gmail.com>
Date:   Sat Dec 26 11:53:01 2015 +0100

    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
---
 src/bin/keyin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,
              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"))
           {

-- 


Reply via email to