Skip to content

Support single- or multiple-token deletion via backspace keyboard combinations in search inputs

James Becker requested to merge james-becker/gitlab:issue-211404 into master

What does this MR do?

This feature allows users to delete tokens in search inputs via standard macOS/Windows keyboard shortcuts.

Using (Mac) / Ctrl + will delete token-by-token, beginning with the last entered token, or current input value if there is any value following the last entered token.

Using (Mac) + will delete all tokens.

In case multiple meta-keys are depressed (for instance, and ), single-token deletion is preferred.

Screenshots

issue-211404

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

This change poses no known risks.

This change has been tested on macOS 10.14.6 in the following browsers:

  • Chrome 80.0.3987.149
  • Safari 13.0.3
  • Firefox 74.0
  • Edge 80.0.361.69
  • Internet Explorer 11.x

I have added tests to existing Karma specs in accordance with https://docs.gitlab.com/ee/development/testing_guide/frontend_testing.html.

Security

This MR does not contain changes to processing or storing of credentials or tokens, authorization or authentication methods or any other items described in the security review guidelines.

Edited by James Becker

Merge request reports