X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=02ef411e25d4a761543ee9d6e5cb9e84195d9260;hp=477a8f8beb4c73fd045be35a556df9b5388c7b42;hb=2b6521f5d23da404a597d675d12d4c0cf89657de;hpb=927d8fb45971ddf0eac115ad04161aba6bbd8bc7 diff --git a/st.c b/st.c index 477a8f8..02ef411 100644 --- a/st.c +++ b/st.c @@ -2711,6 +2711,20 @@ 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) { + fprintf(stderr, "mapped function key.\n"); + break; + } + } + if(i == LEN(mappedkeys)) { + if((k & 0xFFFF) < 0xFF00) + return NULL; + } + fprintf(stderr, "Function key.\n"); for(kp = key; kp < key + LEN(key); kp++) { mask = kp->mask;