[SailfishDevel] TextArea | Using EnterKey.onClicked

ncis20 at gmail.com ncis20 at gmail.com
Sat Feb 7 02:43:11 UTC 2015


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).  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.

Thanks for the fast answer, any further infornation about the topic will also be thanked =).

El vie feb 6 09:13:35 2015 GMT-0300, Pekka Vuorela escribió:
> 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.log("Key.onPressed")
> > 
> >     }
> 
> > But doesn't work, the only signal fired is EnterKey.onClicked.
> > 
> > In addition, my idea is to allow the user to input enters by using
> > shift and then the enter key, is there a way in order to achieve
> > this?.
> 
> At the moment EnterKey doesn't allow to filter out the click event and
> indeed Keys attached property doesn't work on Silica editors. Could look
> into both, but not sure if that would be too high priority.
> 
> First, the virtual keyboard sends key events only on few cases: enter
> and backspace when no word is active (i.e. underlined). Second, shift
> modifier is not supported on either. And even if shift would be passed,
> that as user interface would require multitouch, which doesn't sound
> like a good idea.
> 
> 
> 
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
>

-- 
Enviado desde mi Jolla


More information about the Devel mailing list