angular / material

Material design for AngularJS
https://material.angularjs.org/
MIT License
16.54k stars 3.39k forks source link

Enhancement: md-chips: Using keyboard shortcut "Select All" should select all chips #9706

Open cmacdonnacha opened 8 years ago

cmacdonnacha commented 8 years ago

Actual Behavior:

CodePen (or steps to reproduce the issue): *

Angular Versions: *

Additional Information:


devversion commented 8 years ago

I think this is a great idea.

@topherfangio What do you think?

clshortfuse commented 8 years ago

I would have concerns about what happens if there is text inside the inputbox. It seems like it only makes sense to do this when a chip has focus or when the input field is blank.

if (input.hasFocus || chips.some((chip) => return chip.hasFocus) selectAllChips()

Of course, we don't have support for multiselection for chips, so users aren't able to do ctrl+click, or shift+click, so that would have to be built first.

topherfangio commented 8 years ago

We're trying to get 1.1.2 ready to push out soon, and this has a lower priority than those issues, so I'm going to bump this to 1.1.3.