Focus - why buttons not focussable?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Focus - why buttons not focussable?

    Dear all

    I'm struggling to understand why you would want Buttons in an exemplary Keypad to be set non-focussable, as in example WIDGET_NumPad where BUTTON_SetFocussable(hItem, 0)? What's the use of focusability in general and why it doesn't suit in this particular case? Wouldn't it be easier if you had known that the user has focused exactly on a given button?

    Cheers
  • Hi,

    The buttons are not focusable to make sure the EDIT widgets don't lose their focus.

    If they were focusable you had to either click the EDIT widget after each button press or set the fpcus back to the EDIT widget in your code.

    Regards
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.