Fixed entry block of input for special symbols

pull/31/head
Ivan Dmitrievich Yartsev 12 months ago
parent 8545f8a021
commit 7465948684

@ -1219,7 +1219,7 @@ void yon_on_insert_restricted_check(GtkEditable *editable, const gchar *text, gi
gint i, j = 0;
for (i = 0; i < length; i++) {
if (text[i]=='!'||text[i]=='@'||text[i]=='#'||text[i]=='%'||text[i]=='^'||text[i]=='&'||text[i]=='*'||text[i]=='\"'||text[i]=='\'') {
if (text[i]!='!'&&text[i]!='@'&&text[i]!='#'&&text[i]!='%'&&text[i]!='^'&&text[i]!='&'&&text[i]!='*'&&text[i]!='\"'&&text[i]!='\'') {
new_text[j] = text[i];
j++;
}

Loading…
Cancel
Save