royale-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <>
Subject Re: How do you set the default button in a set of buttons?
Date Mon, 27 Nov 2017 07:37:26 GMT
There is no focus bead yet. The simplest/easiest way to get the functionality without a standard
bead is to subclass TextButton and add the functionality there. You can probably create an
autofocus property and call element.focus() on addedToParent (or something like that).

> On Nov 27, 2017, at 9:32 AM, Justin Mclean <> wrote:
> Hi,
>> Why do you want to set the focus? Wouldn’t different styling be more appropriate?
> Not in this case, the focus needs to be set so it’s the default button, that way for
instance hitting space bar would select the button.
> Thanks,
> Justin

View raw message