Entering text into dropdowns early can initiate project shortcuts unexpectedly

Summary

Focusing the branch dropdown during a new Merge Request and pressing keys will start different actions depending on keys pressed.

Steps to reproduce

  1. Start a new MR
  2. Click on the Source Branch Dropdown, it gets focused
  3. Start typing for a branch name

What is the current bug behaviour?

Anything, depending on shortcut assigned to key

What is the expected correct behaviour?

Either focusing the input itself to let it handle the keyboard events or filtering the branches depending on keys/string entered. I see it as a simple fix but a much better UX for something used so often.

Relevant logs and/or screenshots

This bug happens on GitLab.com

Possible fixes

would like to help out but no idea where to start on gitlab frontend code

Edited Nov 24, 2017 by Mark Fletcher
Assignee Loading
Time tracking Loading