Forums

Keyboard handling - TAB, arrows etc.
Last Post 05 Jan 2016 11:54 AM by Filip Dušek. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Arek KaźmierowskiUser is Offline
New Member
New Member
Posts:63


--
16 Dec 2015 09:31 AM
    Hello and thanks for such a great library. Just testing it since yesterday and it looks great.

    But am I the only one for which the keyboard doesn't really work properly? I didn't find any other forum threads about it.

    If I create just a simple StackPanel with 5 buttons, the behaviour is strange. TAB key cycles focus between first two buttons all the time, same does right arrow and down arrow, up and left arrow both move to the last button. Shift+TAB and numpad arrows don't work at all.

    It looks like there is support for keyboard because it does something, but why is the behaviour like this?
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:674


    --
    16 Dec 2015 09:51 AM
    TAB navigation is bit "simplified" If you set TabIndex on each button (which you should anyway) you will see very similar behavior like in WPF. I can add shift+tab and numpad arrows tho.
    Arek KaźmierowskiUser is Offline
    New Member
    New Member
    Posts:63


    --
    16 Dec 2015 10:30 AM
    A yeaa, it works, thanks. TabIndex had really strange default value.

    Shift+TAB would be great, but I think numpad arrows are even higher priority. Little bit unexpected for the user they don't work. I always use numpad arrows because regular arrows keys are so small and uncomfortable on a laptop. I would never buy a laptop without a numpad because of this. I guess there might be other users doing the same thing.

    In case you do any improvement on this, these are other focus changing keys which are important:
    Ctrl+TAB - next tab page in TabControl
    same with shift - previous tab page

    I guess Home, End, PgUp, PgDown could work too, but this is going advanced
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:674


    --
    05 Jan 2016 11:54 AM
    So I added better keyboard navigation for TabControl and fixed some issues. Tho I don't have any problems with numpad arrows navigation on desktop. It's working fine. Can you check what key codes are those keys on your laptop?
    You are not authorized to post a reply.