X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=367ab51df5236bef61d6a019e025c714665c369b;hb=6312f76ca47f94119a7740dd36f7dd6ce037e907;hp=477a8f8beb4c73fd045be35a556df9b5388c7b42;hpb=90e1427632d6c5852d10c8d2bafa787012903eb9;p=st.git diff --git a/st.c b/st.c index 477a8f8..367ab51 100644 --- a/st.c +++ b/st.c @@ -89,10 +89,6 @@ enum glyph_attribute { }; enum cursor_movement { - CURSOR_UP, - CURSOR_DOWN, - CURSOR_LEFT, - CURSOR_RIGHT, CURSOR_SAVE, CURSOR_LOAD }; @@ -2086,7 +2082,7 @@ tputc(char *c, int len) { } } /* - * All characters which forms part of a sequence are not + * All characters which form part of a sequence are not * printed */ return; @@ -2711,6 +2707,17 @@ char* kmap(KeySym k, uint state) { uint mask; Key *kp; + int i; + + /* Check for mapped keys out of X11 function keys. */ + for(i = 0; i < LEN(mappedkeys); i++) { + if(mappedkeys[i] == k) + break; + } + if(i == LEN(mappedkeys)) { + if((k & 0xFFFF) < 0xFF00) + return NULL; + } for(kp = key; kp < key + LEN(key); kp++) { mask = kp->mask;