tagmanager icon indicating copy to clipboard operation
tagmanager copied to clipboard

Using maxTags and backspace (ability to select/navigate tags like Gmail)

Open JonCanning opened this issue 12 years ago • 4 comments

The input box disappears when maxTags is reached, but doesn't reappear when you use backspace to delete tags

JonCanning avatar Apr 30 '13 10:04 JonCanning

Currently there's no easy way to do this, since the tags themselves cannot get focus. When you hit maxTags, the textarea disappears and focus goes to the window. I think the best way to do it would be to allow tags to have focus (e.g. with arrow keys), and allow backspace to delete tags. Then when we hit max tags, we can shift focus to the most recent tag.

Note that mouse-clicking to delete works correctly.

johnnyshields avatar May 29 '13 21:05 johnnyshields

Maybe (just as a visual aide) showing the input field disabled could help the user understand what's happening. But I think it's just a matter of explaining what's happening outside of the plugin itself.

max-favilli avatar May 29 '13 22:05 max-favilli

@max-favilli look at how Gmail's "To:" field works--you can enter multiple tags (people), use arrow keys to navigate between them, and press backspace to delete a highlighted tag. I think this would be the ideal behavior here.

johnnyshields avatar May 29 '13 22:05 johnnyshields

@johnnyshields now I understood and I totally agree!

max-favilli avatar May 29 '13 22:05 max-favilli