Re: Focus and readonly

I agree. Controls in a hidden case are non-relevant as well, by the way.

Steven

On Wed, 23 Nov 2016 15:15:06 +0100, Erik Bruchez <ebruchez@orbeon.com>  
wrote:

> I would say no, as readonly implies making the control disabled in HTML  
> terms. In >our documentation [1], we say:
>
>    Focus can only happen on those controls under the following  
> conditions:
>      - The control is relevant.
>    - The control is not read-only.
>    - The control is not hidden, namely.
>      - It is not in a hidden case.
>      - It is not in a closed dialog.
>
> The "closed dialog" line is redundant as controls in a closed dialog are  
> non-relevant.
>
> The "hidden case" line is redundant as per XForms 1.1 as controls in a  
> hidden case are >non-relevant. But in our implementation, we support  
> hidden cases with relevant controls, >so that can still apply.
>
> -Erik
>
> [1] https://doc.orbeon.com/xforms/focus.html
>
> On Wed, Nov 23, 2016 at 2:04 AM, Steven Pemberton  
> <steven.pemberton@cwi.nl> wrote:
>> https://www.w3.org/community/xformsusers/wiki/XForms_2.0#all-controls-interaction
>>
>> "Any control that is relevant is able to receive the focus."
>>
>> Is a readonly control able to receive focus?
>>
>> Steven

Received on Wednesday, 23 November 2016 14:20:23 UTC