Disable button GUI_KEY_ENTER reaction

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

    • Disable button GUI_KEY_ENTER reaction

      I'm creating a hybrid touch/key system and have the issue where, after a user has touched a button widget (hence receiving focus), pressing the Enter key repeats the function of that button, while the Enter key should always have a different function.
      So I'm wondering if there is a way to disable any Button widget reacting to GUI_KEY_ENTER?
      Overriding the callback every time seems a bit tiresome.

      The post was edited 1 time, last by bart ().

    • Hi,

      unfortunately there is no function to do this for all button widgets, you have to overwrite the callback for every widget and react on the WM_KEY message.

      Best regards,

      Florian
      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.