[patch 06/11] config: Do not treat all negative key values like KBD_UNDEF.

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
06 (text/x-patch, 1 KB)
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-");
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFE1N+xHm9IGt60eMgRAheHAJ42bXl2VeZZG9iZ6UPWibSfeO+ZugCg1v/E
ijfUgowfjiX7UyJsXTUb75Y=
=Xj+o
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.