Skip to content

Conversation

@SiboVG
Copy link
Member

@SiboVG SiboVG commented Jul 2, 2022

This PR fixes #1488 and #1506. If setting focus on any spinner text field (either by clicking on it when it is not yet in focus, or by pressing the 'Tab' key until that object is in focus), all the text in the text field is highlighted/selected (fixing #1506). When you click again in the text field, e.g. the text '123' is highlighted and you click between the 1 and 2, then the highlight will stop and the cursor will be placed between 1 and 2, so '1|23'.

For the following components, after selecting a preset, the length spinner text field is highlighted:

  • body tube
  • tube fin
  • launch lug
  • inner tube
  • tube coupler
  • engine block

For the following components, the axial position spinner is highlighted:

  • rail buttons (even though they don't have any presets...)
  • streamer
  • parachute
  • centering ring
  • bulkhead

I also took the liberty of changing the text of the Coupler component button to 'Tube Coupler', since that's also the title of the component edit dialog after adding the coupler.

Demo:

Screen.Recording.2022-07-02.at.15.56.27.mp4

@hcraigmiller
Copy link
Collaborator

hcraigmiller commented Jul 2, 2022

Functions as described; no anomalies found.

Build 774
[Windows 11 Pro; Version 21H2; OS Build 22000.739; Windows Feature Experience Pack 1000.22000.739.0]
[Java "11.0.15" 2022-04-19 LTS; Java(TM) SE Runtime Environment 18.9 (build 11.0.15+8-LTS-149)]

@SiboVG SiboVG merged commit c02f961 into openrocket:unstable Jul 4, 2022
@SiboVG SiboVG deleted the issue-1488 branch September 30, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants