Patch #26395

Jump to project autocomplete: focus selected project

Added by Gabriel Cardoso 5 months ago. Updated 5 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:UI
Target version:3.4.3

Description

A small patch that could really enhance "jump to project" autocomplete experience: if a project is selected, then focus it when the project list expands and start from here when navigating with keyboard arrows.

Usecase: when you have projects and subprojects, it's really painful when you want to quickly access parent or sibling project. It's nice to have the current project focused.

I didn't go as far as positionning the widget's scroll bar so the selected project is on top

focus-selected-project-drdn.patch Magnifier (908 Bytes) Gabriel Cardoso, 2017-07-10 10:45

focus-selected-project-drdn-fixed.patch Magnifier (1.89 KB) Gabriel Cardoso, 2017-07-10 11:01

Associated revisions

Revision 16842
Added by Jean-Philippe Lang 5 months ago

Jump to project autocomplete: focus selected project (#26395).

Patch by Gabriel Cardoso.

History

#2 Updated by Marius BALTEANU 5 months ago

FYI: Your patch has only some whitespace changes.

#3 Updated by Gabriel Cardoso 5 months ago

Updated version of the patch : autocompleted text input was not focused on expand

#4 Updated by Jean-Philippe Lang 5 months ago

Only works for me when in "mobile" display. Otherwise it's always the search field that gets the focus (because of drdn.find(".autocomplete").focus(); when not in mobile display).

Anyone else has tested this patch?

#5 Updated by Jean-Philippe Lang 5 months ago

OK got it. Looks good to me.

#6 Updated by Jean-Philippe Lang 5 months ago

  • Target version set to 3.4.3

#7 Updated by Jean-Philippe Lang 5 months ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Committed, thanks.

Also available in: Atom PDF