Make getting keybinding for display more efficient (#27046)

No longer iterates all the matching bindings, and no longer clones the
result.

Release Notes:

- N/A
3ec69a5bc0Michael Sloan committed on 3/19/2025, 8:15:33 PM· committed by GitHubparent33faa66
3 files changedLine totals unavailable