about summary refs log tree commit diff stats
path: root/src/LYKeymap.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1996-11-30 10:18:30 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1996-11-30 10:18:30 -0500
commit6bd78b38830217fa268e678d9637116ec516bf0e (patch)
treeff28371a110a8035413ef3ded834a5e76ebb7fd0 /src/LYKeymap.c
parente087f6d44e87f489fcb3056e86319ebba4218156 (diff)
downloadlynx-snapshots-6bd78b38830217fa268e678d9637116ec516bf0e.tar.gz
snapshot of project "lynx", label v2_6_961130
Diffstat (limited to 'src/LYKeymap.c')
-rw-r--r--src/LYKeymap.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/LYKeymap.c b/src/LYKeymap.c
index a12a471b..5ba5f6a1 100644
--- a/src/LYKeymap.c
+++ b/src/LYKeymap.c
@@ -750,3 +750,19 @@ PUBLIC char *key_for_func ARGS1 (int,func)
 	}
 	return buf;
 }
+
+/*
+ *  This function returns TRUE if the ch is non-alphanumeric
+ *  and maps to keyname (LYK_foo in the keymap[] array). - FM
+ */ 
+PUBLIC BOOL LYisNonAlnumKeyname ARGS2(
+	int,	ch,
+	int,	keyname)
+{
+    if ((ch >= '0' && ch <= '9') ||
+        (ch >= 'A' && ch <= 'z') ||
+	ch < 0 || ch > 269)
+	return (FALSE);
+
+    return(keymap[ch+1] == keyname);
+}