On Tuesday, July 26, 2016 at 1:16:25 AM UTC-7, Marcus Baw wrote: > > Just re-asking the question: Is there any way to select tags using the > keyboard? I've tried various things and don't seem to be able to find a way > to select them via keyboard. > > After typing the title of the tiddler, I can `tab` into the next input (to > enter a tag name). If I start typing here I can narrow the list of tags, > but I can't select from the list using `up-arrow / down-arrow` or any other > key combination I can find. Creating a new tag is also not possible via > keyboard. >
The steps for entering or selecting a tag using only the keyboard are not obvious, and is regrettably awkward. To create a new tag: 1) Move the focus to the tag input field 2) Enter the desired tag text 3) Press TAB 2 times... the 1st tab moves to the downarrow button, the 2nd tab moves to the "add" button 4) Press ENTER to push the button... the tag is added to the tiddler. 5) To return to the tag input field, use SHIFT-TAB 2 times. To select an existing tag: 1) Move the focus to the tag input field... the list of tags (if any) appears. 2) Press TAB 3 times... the 1st tab moves to the downarrow button, the 2nd tab moves to the "add" button, the 3rd tab moves to the top of the list of tags.) 3) Continue to press TAB to move down the list until the desired tag is highlighted. 4) Press ENTER to add the tag. 5) To return to the tag input field, use SHIFT-TAB 3 times. Of course, this process would be MUCH smoother if you could use ENTER directly from the tag input field to add the tag, and DOWN/UP ARROWS to move focus from the input field to the list, as well as moving through the list. For the first part, perhaps the core <$edit-text> widget handling could be extended so that the *contents* of the widget (which are currently ignored) could be used to specify *action-widgets* that would be triggered when the ENTER key is pressed. In this particular use-case, the action would be the same as when the "add" button is pressed (i.e., the tag is added to the tiddler). As an extra bonus, this functionality (triggering actions when ENTER is pressed in an input field) might also be useful for other edit fields, not just the tab input. For the second part (DOWN/UP ARROWS), it might be possible to extend the tag 'pill' keyboard event handling so that DOWN/UP arrow is treated as if TAB/SHIFT-TAB was pressed, so that the existing navigation handling would be triggered (i.e., moving the focus/selection between items in the tab list). Jeremy: what do you think? Is this do-able? enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios InsideTiddlyWiki: The Missing Manuals -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4b02a716-8d95-4910-b5cd-c3a45dfdf464%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.