fix: make home/end keys work in menu list modal windows (resolves #7190)
What does this PR do?
This PR improves UX when navigating all of the various menu/list modal windows by making the home/end keys scroll to the top/bottom of the list. This improves adherence to the principle of least surprise: users are likely to press these keys, expecting them to work, since they do in most other applications, and currently they will be surprised to discover that they do not work. This change eliminates that stumbling block and provides a smoother navigation experience in the menu list modal windows.
Since they all use shared code, this fix applies to all the menu list modal windows: session_timeline, command_list, model_list, and possibly also others that I'm not aware of or that have slipped my mind at the present moment.
How did you verify your code works?
I have been using it for weeks in my personal fork and I've never had a problem with it. C'mon, it's two very simple lines, what could go wrong?
Resolves #7190 Resolves #8344
The following comment was made by an LLM, it may be inaccurate:
No duplicate PRs found