Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Page Up/Down keys #165

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix Page Up/Down keys #165

wants to merge 3 commits into from

Conversation

mjbnz
Copy link
Contributor

@mjbnz mjbnz commented Nov 6, 2019

Very simple fix - reorderScrpos() was being called with bottomDrawLine, but that's not the last drawn drawlist item.

@mjbnz
Copy link
Contributor Author

mjbnz commented Nov 6, 2019

Appears that PgDn is still buggy after this patch, but it's still better than the always "go to last item" that it did before.

Signed-off-by: Mike Beattie <mike@ethernal.org>
Previously, if nothing was selected, the last item on the drawlist would
always be selected because the check of scrpos would never match. It
should have been "< bottomDrawLine - 1". Now it should correctly select
the last item on the screen.

Signed-off-by: Mike Beattie <mike@ethernal.org>
@mjbnz
Copy link
Contributor Author

mjbnz commented Dec 7, 2019

Spent some time fixing this properly, it's now fairly reliable and behaviour matches list UIs in other console apps.

@mjbnz mjbnz changed the title Fix Page Down key Fix Page Up/Down keys Dec 7, 2019
Signed-off-by: Mike Beattie <mike@ethernal.org>
@mjbnz
Copy link
Contributor Author

mjbnz commented Aug 11, 2020

Hello, any chance that this PR might be accepted?

@liske liske self-assigned this Dec 25, 2020
@liske liske added this to the apt-dater 1.0.4 milestone Dec 25, 2020
@liske
Copy link
Member

liske commented Dec 25, 2020

Hello, any chance that this PR might be accepted?

Sorry I was busy and lost track of your PR.I'm going to take a look at it so it could be part of the next bugfixing release apt-dater 1.0.4 (so it get's into Debian Bulldozer).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants