<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
If you using RichText enter key not adding newline. So depends on
settings you entering <br/> yourself or doing send.<br>
<br>
<div class="moz-cite-prefix">07.02.2015 23:37, Nicolas Cisco пишет:<br>
</div>
<blockquote
cite="mid:CAF_oOGdjNWh3=6RkGkdxZQ=YUwPH0zOJEf79fGiBuN_936W0VA@mail.gmail.com"
type="cite">
<div dir="ltr">Yes, i tried the text.substr(0, text.length-1). In
my first mail, i wrote why doesn't wok:
<div>"<span style="font-size:13px">I though of striping the
enterkey by hand in the callback like `textArea.text =
textArea.text.slice(0, -1)`, but, the problem is that if you
are not in the end of the input this doesn't work."
(text.substr(0, text.lenght-1) does bassically the same as
text.slice(0, -1) ).</span></div>
<div><span style="font-size:13px"><br>
</span></div>
<div>I don't think that multiline support is critical. The
problem of changing TextArea to a TextField, is that when
writing long texts, altought you are writing only one line,
TextArea expands in a multilineal way, which is easier to
edit, while TextField mantains the widget size and the text
moves.</div>
<div><br>
</div>
<div>I remember that Mitakuuluu2 [1] [2] app had a nice
conversation input. A widget that expands in a multilineal way
with a custom enter action. I had a glance at the code, and i
find it very hard to understand (i'm a begginner at qml). I'll
try to reuse that code, any help on understand it will be
appreciated =).</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://github.com/CODeRUS/mitakuuluu2/blob/master/client/qml/EmojiTextArea.qml">https://github.com/CODeRUS/mitakuuluu2/blob/master/client/qml/EmojiTextArea.qml</a></div>
<div>[2] <a moz-do-not-send="true"
href="https://github.com/CODeRUS/mitakuuluu2/blob/master/client/qml/EmojiTextBase.qml">https://github.com/CODeRUS/mitakuuluu2/blob/master/client/qml/EmojiTextBase.qml</a></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-02-07 4:19 GMT-03:00 Asser
Lähdemäki <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:sailfishmail@denden.pw" target="_blank">sailfishmail@denden.pw</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Did you try text.substr(0, text.lenght-1) to remove the last
char?<br>
<br>
Also, if the multiline support is important for your UX,
perhaps you could open a Dialog when the text is clicked,
where you could accept the edits without EnterKey.<br>
<br>
Cheers,<br>
Asser<br>
<br>
ncis20 kirjoitti la helmikuuta 7 08:32:12 2015 GMT+0200:<br>
<div class="HOEnZb">
<div class="h5">> Uhh, that's bad news =(, i'll have to
use TextField instead and forget of having multineal
support.<br>
> When i said shift+enter, i wasn't refering to
actually touching both keys at the same time, i was
thinking in something like caps lock (like entering
upper cased letters in the virtual keyboard). When you
hit the shift in the virtual keyboard, it sticks and you
can input uppercased letters without multitouch support.
I was wondering if with the enter key could be done
something similar, i.e. normal enter would trigger the
action shift+enter (not actually pressing both keys at
the same time, but like uppercased letters) would input
a newline.<br>
><br>
> Thanks for the fast answer, any further infornation
about the topic will also be thanked =).<br>
><br>
> El vie feb 6 09:13:35 2015 GMT-0300, Pekka Vuorela
escribió:<br>
> > to, 2015-02-05 kello 20:11 -0300, Nicolas
Cisco kirjoitti:<br>
> ><br>
> ><br>
> > > I try using the qml Keys api:<br>
> > ><br>
> > ><br>
> > > TextArea {<br>
> > > id: textArea<br>
> > > EnterKey.onClicked:
console.log("EnterKey.onClicked")<br>
> > > Key.onEnterPressed:
console.log("Key.onEnterPressed")<br>
> > ><br>
> > > Key.onPressed:
console.log("Key.onPressed")<br>
> > ><br>
> > > }<br>
> ><br>
> > > But doesn't work, the only signal fired
is EnterKey.onClicked.<br>
> > ><br>
> > > In addition, my idea is to allow the user
to input enters by using<br>
> > > shift and then the enter key, is there a
way in order to achieve<br>
> > > this?.<br>
> ><br>
> > At the moment EnterKey doesn't allow to filter
out the click event and<br>
> > indeed Keys attached property doesn't work on
Silica editors. Could look<br>
> > into both, but not sure if that would be too
high priority.<br>
> ><br>
> > First, the virtual keyboard sends key events
only on few cases: enter<br>
> > and backspace when no word is active (i.e.
underlined). Second, shift<br>
> > modifier is not supported on either. And even
if shift would be passed,<br>
> > that as user interface would require
multitouch, which doesn't sound<br>
> > like a good idea.<br>
> ><br>
> ><br>
> ><br>
> >
_______________________________________________<br>
> > SailfishOS.org Devel mailing list<br>
> > To unsubscribe, please send a mail to <a
moz-do-not-send="true"
href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
> ><br>
><br>
> --<br>
> Enviado desde mi Jolla<br>
> _______________________________________________<br>
> SailfishOS.org Devel mailing list<br>
> To unsubscribe, please send a mail to
<a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.or">devel-unsubscribe@lists.sailfishos.or</a><br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a
moz-do-not-send="true"
href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">Nicolas Cisco<br>
<a moz-do-not-send="true" href="http://www.nckweb.com.ar"
target="_blank">www.nckweb.com.ar</a><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</body>
</html>