JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix speech error in comment
[st.git] / st.c
diff --git a/st.c b/st.c
index 477a8f8..367ab51 100644 (file)
--- 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;