forked from enlightenment/efl
efl.ui.textbox: Keyboard Enter will add paragraph separator
Summary: efl.ui.textbox: Keyboard Enter will add paragraph separator and \n because of D9064 Textbox multiline can work with paragraph separator Reviewers: woohyun, segfaultxavi, bu5hm4n, zmike Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11201
This commit is contained in:
parent
2d7667aa44
commit
5d3497e506
|
@ -1186,16 +1186,14 @@ _key_down_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void
|
||||||
{
|
{
|
||||||
if (multiline)
|
if (multiline)
|
||||||
{
|
{
|
||||||
//FIXME this should be Fixed when multiline set works fine with PARAGRAPH_SEPARATOR
|
if (shift || efl_canvas_textblock_newline_as_paragraph_separator_get(obj))
|
||||||
//Now only \n can work with multiline set
|
|
||||||
//if (shift || efl_canvas_textblock_newline_as_paragraph_separator_get(obj))
|
|
||||||
{
|
{
|
||||||
string = "\n";
|
string = "\n";
|
||||||
}
|
}
|
||||||
/*else
|
else
|
||||||
{
|
{
|
||||||
string = _PARAGRAPH_SEPARATOR_UTF8;
|
string = _PARAGRAPH_SEPARATOR_UTF8;
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue