Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12924 Report format drop down fix #13979

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rlament
Copy link
Contributor

@rlament rlament commented Apr 7, 2025

Noticed this was being looked at and one of those pull requests sparked an idea. Added a check to prevent 'select all' when the focus remains on the same control. Fixed the tab key so that focus actually goes to the next control on the page. Added 'insert key' to expand the dropdown.

Closes #12924

Do not select all when focus remains on the StringConfigurer
Insert key expands the Insert dropdown.
Tab key moves focus to the next control on the page.
@riverwanderer riverwanderer added this to the 3.7.16 milestone Apr 7, 2025
@riverwanderer
Copy link
Collaborator

Tests out great for me, nice one! Hope this can go into 3.7.16 @uckelman.

@riverwanderer riverwanderer added the bug Something isn't working label Apr 7, 2025
@rlament
Copy link
Contributor Author

rlament commented Apr 7, 2025

It is also possible to delete the implementation of the FocusListener interface. It appears that this class nor any derived class use it. Let me know if it should go.

I did quick tests of derived classes: DeckSelectionConfigurer, FlareFormattedStringConfigurer, FormattedStringConfigurer, PlayerIdFormattedStringConfigurer and PropertyExpression.

@riverwanderer
Copy link
Collaborator

Fixed the tab key so that focus actually goes to the next control on the page

Are you sure that wasn't working already? Seems to be working for me.

In any open window, fields preserve current contents section/caret state, I notice. If none, then tab will select-all. I suspect this is standard.

@rlament
Copy link
Contributor Author

rlament commented Apr 9, 2025

Fixed the tab key so that focus actually goes to the next control on the page

Are you sure that wasn't working already? Seems to be working for me.

In any open window, fields preserve current contents section/caret state, I notice. If none, then tab will select-all. I suspect this is standard.

Just to be clear it is the 'tab out' that's broken, tabbing into is fine, you just can't leave. Retested on 3.6.7 (before 11557) and tab out does not work. Definitely does not work with 3.7.15. The fix is this one line: dropList.setFocusable(false);

In your revert branch this line has been added. So it had a bit more than just a revert and thus tabbing worked.

@uckelman uckelman modified the milestones: 3.7.16, 3.7.17 Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Report format insert feature selects all text causing over-write
3 participants