31 if (keyboard_input_queue)
32 this->keyboard_queue = keyboard_input_queue;
34 this->keyboard_queue = &local_keyboard_queue;
36 keyboard_input_queue->clear();
37 this->disallowed =
new char[strlen( disallowed )+1];
38 strcpy( this->disallowed, disallowed );
53 this->isFocused =
false;
65 if (!this->isFocused) {
68 text1.insert( 0u, text.length(), passwordChar );
76 size_t LN = keyboard_queue->size();
77 for (
size_t i = 0;
i < LN; ++
i) {
78 unsigned int c = (*keyboard_queue)[
i];
80 if (c == 8 || c == 127) {
81 text = text.substr( 0, text.length()-1 );
82 }
else if (c !=
'\0' && c < 256) {
84 for (
int j = 0; disallowed[
j]; ++
j)
85 if ( c == static_cast<unsigned int>(disallowed[
j]) ) {
96 keyboard_queue->clear();
100 text1.insert( 0u, text.length(), passwordChar );
112 delete[] this->disallowed;