Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21792 closed enhancement (fixed)

[patch] Request focus in SplitWayAction window segment list

Reported by: gaben Owned by: team
Priority: trivial Milestone: 22.05
Component: Core Version:
Keywords: focus Cc:

Description (last modified by gaben)

When splitting a way in expert mode, a window appears for selecting the segment for history reuse. If you are not satisfied with the default selection (way with most nodes), currently you need to use the mouse to change it.

After adding this line, up/down keys will also be usable without further interaction to select the way, which speeds up editing.

  • src/org/openstreetmap/josm/actions/SplitWayAction.java

     
    242242                if (ds != null) {
    243243                    ds.addDataSetListener(dataSetListener);
    244244                }
     245                list.requestFocusInWindow();
    245246            } else {
    246247                if (ds != null) {
    247248                    ds.removeDataSetListener(dataSetListener);

Attachments (0)

Change History (10)

comment:1 by gaben, 3 years ago

Description: modified (diff)

comment:2 by gaben, 3 years ago

Keywords: focus added

comment:3 by gaben, 3 years ago

Milestone: 22.03

comment:4 by gaben, 3 years ago

Description: modified (diff)

comment:5 by stoecker, 3 years ago

Milestone: 22.0322.04

comment:6 by gaben, 3 years ago

up

comment:7 by stoecker, 3 years ago

Milestone: 22.0422.05

Milestone renamed

comment:8 by taylor.smock, 3 years ago

Resolution: fixed
Status: newclosed

In 18442/josm:

Fix #21792: Request focus in SplitWayAction window segment list (patch by gaben)

This allows users to use the arrow keys to select the way segment that will
keep history.

This should have no significant difference from a UI perspective, as previously
the OK button had focus, which prevented the arrow keys from working. With
this change, users can still use enter to activate the OK button.

One caveat is that space no longer works to activate the OK button without
using tab to change the focused component.

comment:9 by taylor.smock, 3 years ago

Oops, I forgot to add patch by gaben to the commit message. Sorry. :(

EDIT: And fixed. Note to self, svn propedit svn:log --revprop -r<REVISION> works.

Last edited 3 years ago by taylor.smock (previous) (diff)

comment:10 by gaben, 3 years ago

Thank you for applying the patch!

BTW we had space and enter for the same purpose ;)

Last edited 3 years ago by gaben (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.