Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 232
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

How to add a "period" by double pressing the space bar?

Hi,

 

How to add a full stop (period .) by double pressing the space bar?

I'm using Aodbe Air 3.6 and the StageText fields.

 

Thanks

Highlighted
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to add a "period" by double pressing the space bar?

Trap keystroke events. Maintain "last character". If new character is space and is the same as last character, append a period. You might want to keep track of time, so that the second character has to be done within some period of time (say 500ms).