#88558 - labels being focusable

Tobias Anton TA at ESC-Electronics.de
Thu Oct 14 21:00:01 BST 2004


On Dienstag, 12. Oktober 2004 14:18, Lubos Lunak wrote:
>  Hello,
>
>  I'd like to revert http://lists.kde.org/?l=kde-cvs&m=108966223527485&w=2
> in both HEAD and BRANCH, as it causes #88558.
>
>  Why has been this done at all? I'm not aware of labels being focusable
> anywhere, it doesn't make any sense to me. The current behavior is
> extremely annoying with login screens (e.g. the email login dialog at
> http://seznam.cz).
I admit that I didn't test this with http://seznam.cz. And indeed, my 
intention wasn't about reimplementing something that already exists. 
Nontheless, it makes sense to me to have a labels be focusable if they can be 
activated. This way, the activation can be triggered by keyboard.

>  Objections?

Reverting that commit would not only make labels unfocusable again, but it 
would also break other working stuff. Returning false in the method 
"HTMLLabelElementImpl::isSelectable()" would do what you expect. However, 
this is not the optimal solution either. I really think a label's 
focusability should depend on whether a click on it (with the mouse) would do 
more than focusing the associated form element. E.g. if a label for a link is 
clicked, the link is supposed to be followed. In that case, the label can be 
regarded a placeholder for the link and it should be focusable in order to 
allow keyboard-only users to trigger all actions that are also available to a 
mouse-user.

Cheers
-- Tobias




More information about the kfm-devel mailing list