X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/90e1427632d6c5852d10c8d2bafa787012903eb9..1cea02be8d331597b3cfccf1d23eb22e57433c85:/st.c diff --git a/st.c b/st.c index 477a8f8..0a8382c 100644 --- a/st.c +++ b/st.c @@ -2711,6 +2711,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;