obsidian-tasks icon indicating copy to clipboard operation
obsidian-tasks copied to clipboard

Priority UI Dropdown on task create should allow selection by typing

Open madorb opened this issue 2 years ago • 4 comments

Expected Behavior

When the Priority drop-down has focus, typing the first letter of a priority should immediately select the appropriate priority

Current Behavior

When the Priority drop-down has focus, typing H,M, L does nothing.

Pressing down opens the drop-down, but then pressing any of H, M, L(or any character really) causes Medium to be selected.

Note, two things to correct, a) allow the drop-down to be immediately changeable with a keypress when it has focus b) allow the drop-down values to be selected by typing

Context (Environment)

  • Obsidian version: 0.13.23
  • Tasks version: 1.4.1
  • [x] I have tried it with all other plugins disabled and the error still occurs

madorb avatar Mar 02 '22 17:03 madorb

Thanks, @madorb. The current workaround is using the arrow keys.

schemar avatar Mar 06 '22 18:03 schemar

Selecting the priority using 4 radiobuttons would be also much faster than a dropdown.

Cito avatar May 12 '22 20:05 Cito

@Cito disagree. may be slightly better than current as you could tab through them instead of moving to arrow keys. but a type-ahead drop-down where one just needs to type say H to have high selected, then hit tab to go to move onto question would be optimal

madorb avatar May 12 '22 21:05 madorb

@madorb One does not exclude the other. For use with the keyboard, it would be best if you could tab to the priority radioboxes and then select the priority with either HML or cursor keys. I.e. same behavior as the dropdown - it should not tab through the individual radiobuttons, but only to the currently selected one, so tabbing through the fields would be just as quick. But when using the mouse, it would be much faster.

Cito avatar May 12 '22 22:05 Cito

This feature was released in 1.16.0 and then improved in 1.17.0 Docs: https://obsidian-tasks-group.github.io/obsidian-tasks/getting-started/create-or-edit-task/#keyboard-shortcuts

claremacrae avatar Nov 05 '22 11:11 claremacrae