From fd8cbb9cf9370a53b1400bddb958301c05fd36a9 Mon Sep 17 00:00:00 2001
From: Mark Edgar <medgar123@gmail.com>
Date: Sun, 6 Oct 2013 13:15:57 +0200
Subject: [PATCH 2/3] Eliminate mappedkeys.

---
 config.def.h |  6 ------
 st.c         | 15 ++-------------
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/config.def.h b/config.def.h
index da6ba8a..e269500 100644
--- a/config.def.h
+++ b/config.def.h
@@ -140,12 +140,6 @@ static Shortcut shortcuts[] = {
  */
 
 /*
- * If you want keys other than the X11 function keys (0xFD00 - 0xFFFF)
- * to be mapped below, add them to this array.
- */
-static KeySym mappedkeys[] = { -1 };
-
-/*
  * Which bits of the state should be ignored. By default the state bit for the
  * keyboard layout (XK_SWITCH_MOD) is ignored.
  */
diff --git a/st.c b/st.c
index f444b76..c2859b6 100644
--- a/st.c
+++ b/st.c
@@ -403,7 +403,7 @@ static void xsettitle(char *);
 static void xresettitle(void);
 static void xsetpointermotion(int);
 static void xseturgency(int);
-static void xsetsel(char*);
+static void xsetsel(char *);
 static void xtermclear(int, int, int, int);
 static void xunloadfont(Font *f);
 static void xunloadfonts(void);
@@ -3517,20 +3517,9 @@ numlock(const Arg *dummy) {
 	term.numlock ^= 1;
 }
 
-char*
+char *
 kmap(KeySym k, uint state) {
 	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) < 0xFD00)
-			return NULL;
-	}
 
 	for(kp = key; kp < key + LEN(key); kp++) {
 		if(kp->k != k)
-- 
1.8.4

