Page 1 of 1

How to allow scrolling with arrow keys in a listview

Posted: Sat Jul 14, 2018 1:14 am
by NathanH
Hi,

MUI-Demo and my listviews do not allow scolling with arrow keys. The SimpleMail listviews do. Is it a version thing? How does one allow scrolling with arrow keys in a listview? Thanks.

NathanH

Re: How to allow scrolling with arrow keys in a listview

Posted: Mon Jul 16, 2018 5:03 pm
by SamuraiCrow
Have you tried the "Accelerator" class to bind key shortcuts?

Re: How to allow scrolling with arrow keys in a listview

Posted: Mon Jul 16, 2018 5:41 pm
by SamuraiCrow
Whoops! I noticed too late that you're using MUI Royale instead of RapaGUI.

Re: How to allow scrolling with arrow keys in a listview

Posted: Mon Jul 16, 2018 11:55 pm
by airsoftsoftwair
You need to set the listview as the window’s default object using Window.DefaultObject. Otherwise the listview needs to have keyboard focus for cursor key scrolling to work.

Re: How to allow scrolling with arrow keys in a listview

Posted: Wed Aug 08, 2018 2:13 am
by NathanH
I didn't make myself clear. If I have three items in a listview that has room for twenty so that scrolling is unnecessary, the arrow keys do not scroll from item 1 to item 2 or item 2 to item 3 even if the listview has the focus.

NathanH

Re: How to allow scrolling with arrow keys in a listview

Posted: Wed Aug 08, 2018 2:18 am
by NathanH
Never mind, I tried to gain focus by clicking on the listview. It scrolls just fine once you tab to it.

NathanH