config: Do not treat all negative key values like KBD_UNDEF.

---
commit 2e82195089f13d675d004aeaa717e63303e7b4ef
tree 4b12992b749ea564290ce66408f643f1eef9ea02
parent e36246f2dd33a9fe8d373c4245b1a00129ea6ea5
author Kalle Olavi Niemitalo <[EMAIL PROTECTED]> Sat, 05 Aug 2006 12:21:25 +0300
committer Kalle Olavi Niemitalo <[EMAIL PROTECTED]> Sat, 05 Aug 2006 20:16:08 +0300

 src/config/kbdbind.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config/kbdbind.c b/src/config/kbdbind.c
index 09c7ceb..c6a2405 100644
--- a/src/config/kbdbind.c
+++ b/src/config/kbdbind.c
@@ -398,7 +398,7 @@ parse_keystroke(unsigned char *s, struct
 	}
 
 	kbd->key = read_key(s);
-	return (kbd->key < 0) ? -1 : 0;
+	return (kbd->key == KBD_UNDEF) ? -1 : 0;
 }
 
 void
@@ -409,7 +409,7 @@ add_keystroke_to_string(struct string *s
 	unsigned char *key_string = NULL;
 	struct key *key;
 
-	if (kbd->key < 0) return;
+	if (kbd->key == KBD_UNDEF) return;
 
 	if (kbd->modifier & KBD_MOD_SHIFT)
 		add_to_string(str, "Shift-");

Attachment: pgpWyr7dvKBur.pgp
Description: PGP signature

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to