The widget we are using (urwid.ListBox) does not support the home/end keys. Other widgets bring other problems as ListBox very elegantly handles the issue that we want to keep the focus on the file selector button (so you can change file by pressing enter) whilst being able to scroll the log file (which is a different component all together).
This PR adds a somewhat hacky but rather effective solution. When the user presses "home/end", fire off the "page up/down" key until the window stops scrolling (which happens when we hit the top/bottom of the ListBox).
Check List
[x] I have read CONTRIBUTING.md and added my name as a Code Contributor.
[x] Contains logically grouped changes (else tidy your branch by rebase).
[x] Does not contain off-topic changes (use other PRs for other changes).
[x] Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
[x] Tests are included (or explain why tests are not needed).
[x] Changelog entry included if this is a change that can affect users
[x] Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
[x] If this is a bug fix, PR should be raised against the relevant ?.?.x branch.
The widget we are using (urwid.ListBox) does not support the home/end keys. Other widgets bring other problems as
ListBox
very elegantly handles the issue that we want to keep the focus on the file selector button (so you can change file by pressing enter) whilst being able to scroll the log file (which is a different component all together).This PR adds a somewhat hacky but rather effective solution. When the user presses "home/end", fire off the "page up/down" key until the window stops scrolling (which happens when we hit the top/bottom of the ListBox).
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.