X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fentry.cpp;h=523fea5cc945f8a6bf6b321990c74ff449ee63d1;hp=7f50ed038fbdd6cc4a758adcc0973d84f550b726;hb=aba0416fb73e17d068b30ff163c2fedcb0254da2;hpb=94ac63c6f41227ce57790d9903039ec18a6ef3fd diff --git a/source/entry.cpp b/source/entry.cpp index 7f50ed0..523fea5 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -52,6 +52,8 @@ void Entry::key_press(unsigned key, unsigned, wchar_t ch) if(edit_pos>0) text.erase(--edit_pos, 1); } + else if(key==Input::KEY_ENTER) + signal_enter.emit(); else if(ch>=' ') { text.insert(edit_pos, Codecs::encode(Codecs::ustring(1, ch)));