slider(0),
got_key_press(false)
{
+ input_type = INPUT_TEXT;
set_text(t);
}
slider->render(renderer);
}
-void Entry::key_press(unsigned key, unsigned)
+bool Entry::key_press(unsigned key, unsigned)
{
got_key_press = true;
if(key==Input::KEY_LEFT)
else
signal_enter.emit();
}
+ else
+ return false;
+
+ return true;
}
-void Entry::character(wchar_t ch)
+bool Entry::character(wchar_t ch)
{
if(got_key_press && ch>=' ')
{
text.insert(edit_pos, StringCodec::encode<StringCodec::Utf8>(StringCodec::ustring(1, ch)));
++edit_pos;
rebuild();
+ return true;
}
+
+ return false;
}
void Entry::focus_out()