From 2090f81b40eeba2c019876e22a529e882c391abf Mon Sep 17 00:00:00 2001 From: kojima Date: Tue, 29 Feb 2000 21:50:35 +0000 Subject: [PATCH] isprint() used in place of !iscntrl() --- WINGs/wtextfield.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c index de9e6925..c0634d83 100644 --- a/WINGs/wtextfield.c +++ b/WINGs/wtextfield.c @@ -1170,7 +1170,7 @@ handleTextFieldKeyPress(TextField *tPtr, XEvent *event) normal_key: default: - if (count > 0 && !iscntrl(buffer[0])) { + if (count > 0 && isprint(buffer[0])) { if (tPtr->selection.count) WMDeleteTextFieldRange(tPtr, tPtr->selection); WMInsertTextFieldText(tPtr, buffer, tPtr->cursorPosition);