]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/entry.cpp
Render text in Dropdown directly from the List
[libs/gltk.git] / source / entry.cpp
index efb4b45c57d354ca4f11b453ff567fe58d108421..7f50ed038fbdd6cc4a758adcc0973d84f550b726 100644 (file)
@@ -52,7 +52,7 @@ void Entry::key_press(unsigned key, unsigned, wchar_t ch)
                if(edit_pos>0)
                        text.erase(--edit_pos, 1);
        }
-       else
+       else if(ch>=' ')
        {
                text.insert(edit_pos, Codecs::encode<Codecs::Utf8>(Codecs::ustring(1, ch)));
                ++edit_pos;