Community
Participate
Working Groups
RC1 - open properties dialog on project folder - open "Info" page - click in "Path" field Observe: the field gets the blue focus frame despite the fact that it does not accept any keyboard input.
*** Bug 33232 has been marked as a duplicate of this bug. ***
Not accepting keyboard input does not mean you can't get focus. e.g., for accessibilty, you may wish to allow users to navigate to a read only field by the keyboard to select and copy text (using accelerators). The visiual indicator that focus is the text field is still required I think.
Yes, but in this case the following is wrong or doesn't work: - the background of the field is white and looks like it would allow input, - tabbing between fields doesn't work, - selecting the contents with the keyboard doesn't work, - the focus border is partially clipped (see attachment).
Created attachment 3757 [details] Property dialog
All we do is set the kTXNReadOnlyMask. It's up to the Macintosh to decide how a read only text field behaves and looks.
If I remember correctly text fields don't draw their focus rings themself. So SWT decides when to draw focus and when not. I suggest not to draw the focus ring for readonly fields, which would make my comment #3 obsolete. However if the focus is drawn the problems in comment #3 are valid.
Reopening. See comment #6
Here is our thinking: If the control has focus, then it should have the focus ring despite the fact that it may or may not do anything with the keys that you type. If you agree, then SSQ should close this PR.
I do not agree. I've listed the options to resolve this in comment #6.
*** Bug 57369 has been marked as a duplicate of this bug. ***
Note that this allows the title of wizards to be selected, which let's face it, no-one will want to copy. Whether this should be fixed on an SWT-wide scale, or whether it should be the case that the wizard title should not allow input (is it possible for something to be disabled, in the same way as in Swing/ AWT?) then this could also be fixed on a label-by-label basis. However, the net effect -- that it is possible for the title of a wizard pane to have focus -- is something (reported in bug 57369) is undesirable and should be stopped at the low or high level.
I just noticed that in the "About Eclipse Platform" dialog the text is selectable but does not show a focus border. So it is possible.
*** Bug 65322 has been marked as a duplicate of this bug. ***
Andre Weinand said "I suggest not to draw the focus ring for readonly fields..." Then how do you tab to a read only combo box? I want the user to be able to select a field but not edit, being able to tab to it would be important. This whole tab thing really makes wizards buggy...Isn't there a SWT.NO_FOCUS sytle bit that you can set on widgets to fix the underlying wizard issue? Eric
I did not suggest to disable the focus border for readonly Combo boxes.
Created attachment 12960 [details] patch for Text.java
*** This bug has been marked as a duplicate of 71765 ***