mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 04:14:20 +01:00
isprint() used in place of !iscntrl()
This commit is contained in:
@@ -1170,7 +1170,7 @@ handleTextFieldKeyPress(TextField *tPtr, XEvent *event)
|
|||||||
|
|
||||||
normal_key:
|
normal_key:
|
||||||
default:
|
default:
|
||||||
if (count > 0 && !iscntrl(buffer[0])) {
|
if (count > 0 && isprint(buffer[0])) {
|
||||||
if (tPtr->selection.count)
|
if (tPtr->selection.count)
|
||||||
WMDeleteTextFieldRange(tPtr, tPtr->selection);
|
WMDeleteTextFieldRange(tPtr, tPtr->selection);
|
||||||
WMInsertTextFieldText(tPtr, buffer, tPtr->cursorPosition);
|
WMInsertTextFieldText(tPtr, buffer, tPtr->cursorPosition);
|
||||||
|
|||||||
Reference in New Issue
Block a user