Sorry, RichText trick seems not to work.
I really see no other way than creating own component by copying
TextArea, TextBase and TextAutoScroller from silica and adding Keys to
TextArea TextEdit element.
12.02.2015 08:20, Nicolas Cisco пишет:
I don't understand to what are you refering by sai
I've end up copying the source of TextArea (
/usr/lib/qt5/Sailfish/Silica/TextArea.qml ) and adding a custom signal
called pressed. This signal is fired when the Keys.onPressed for the
TextEdit [0] is fired. This signal send the KeyEvent object, so in order to
stop propagation event.accepted has to
I don't understand to what are you refering by sailing RichText. Can you
explain it?.
Thanks!
2015-02-07 16:55 GMT-03:00 Andrey Kozhevnikov :
> If you using RichText enter key not adding newline. So depends on
> settings you entering yourself or doing send.
>
> 07.02.2015 23:37, Nicolas Cisco п
If you using RichText enter key not adding newline. So depends on
settings you entering yourself or doing send.
07.02.2015 23:37, Nicolas Cisco пишет:
Yes, i tried the text.substr(0, text.length-1). In my first mail, i
wrote why doesn't wok:
"I though of striping the enterkey by hand in the ca
Yes, i tried the text.substr(0, text.length-1). In my first mail, i wrote
why doesn't wok:
"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
Hello,
Did you try text.substr(0, text.lenght-1) to remove the last char?
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.
Cheers,
Asser
ncis20 kirjoitti la helmikuuta 7 08:32:
Uhh, that's bad news =(, i'll have to use TextField instead and forget of
having multineal support.
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).
to, 2015-02-05 kello 20:11 -0300, Nicolas Cisco kirjoitti:
> I try using the qml Keys api:
>
>
> TextArea {
>id: textArea
>EnterKey.onClicked: console.log("EnterKey.onClicked")
>Key.onEnterPressed: console.log("Key.onEnterPressed")
>
>Key.onPressed: console.
In the previous email, I transcribed wrongly the qml keys example. The
correct example is:
TextArea {
id: textArea
EnterKey.onClicked: console.log("EnterKey.onClicked")
Keys.onEnterPressed: console.log("Keys.onEnterPressed")
Keys.onPressed: console.log("Keys.onPress
Hi,
I'm using the EnterKey.onClicked in a TextArea, the problem is that if I
retrieve the text area's text in the callback function, it has a trailing
newline (the enter input). Is there a way to prevent the enter key?. I
though of striping the enterkey by hand in the callback like `textArea.text
=
10 matches
Mail list logo