overlays/osk: do not change the preview text on empty input

This prevents that the placeholder disappears
This commit is contained in:
Megamouse 2020-03-15 12:27:15 +01:00
parent f1127f1894
commit a1f70bf96e

View File

@ -558,6 +558,11 @@ namespace rsx
void osk_dialog::on_default_callback(const std::u32string& str)
{
if (str.empty())
{
return;
}
// Append to output text
if (m_preview.text == get_placeholder())
{