Fix numpad enter not working for revision compare dropdown

What does this MR do and why?

This change improves keyboard accessibility in a dropdown component used for selecting code branches or tags. Previously, the dropdown only responded to the regular Enter key when users typed in a search box. Now it also responds to the Enter key on the numeric keypad, making it more user-friendly for people who prefer using the numpad.

References

#552359 (comment 2594632995)

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. Visit a project/directory under a project
  2. Select another branch/tag
    1. For searching commit, enter the commit sha and press enter on the numpad
  3. Select compare

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #552359 (closed)

Merge request reports

Loading