Re: UIBase has mouse events but not keyboard events?

2023-07-13 Thread Harbs
I tried looking through the code, but I couldn’t find anywhere that’s handled. I assume it works correctly? But I have no idea how... > On Jul 13, 2023, at 9:38 AM, Greg Dove wrote: > > I think we already do similar for mouseDown vs mousedown > etc in UIBase?

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Greg Dove
gt;. Another option is creating > MyTextInput that has [Event(name="keydown")] on top of "change". > > > ________________ > From: Harbs > Sent: Thursday, July 13, 2023 8:42 AM > To: dev@royale.apache.org > Subject: Re: UIBase has mouse ev

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Yishay Weiss
Another option is creating MyTextInput that has [Event(name="keydown")] on top of "change". From: Harbs Sent: Thursday, July 13, 2023 8:42 AM To: dev@royale.apache.org Subject: Re: UIBase has mouse events but not keyboard events? Also: wit

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Harbs
Also: with modern apps that might have touch events, keydown and keyup are less useful than they used to be. Handling all the input-related events by default is likely a bit much. > On Jul 13, 2023, at 8:40 AM, Harbs wrote: > > I don’t have any objections on principle, but there is something w

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Harbs
I don’t have any objections on principle, but there is something which might be a technical challenge: In swf it’s “keyDown” and “keyUp”, but in JS it’s “keydown” and “keyup”. I’m not sure how to handle that with metadata and MXML. > On Jul 13, 2023, at 1:20 AM, Josh Tynjala wrote: > > I'm tr

UIBase has mouse events but not keyboard events?

2023-07-12 Thread Josh Tynjala
I'm trying to convert some Flex code to Royale. In particular, I'd like to add a keyDown listener to a component in MXML so I can listen to special keys like Esc, but there doesn't seem to be any [Event] metadata for keyboard events on UIBase. I see that there is [Event] metadata for mouse events,