Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. AbstractButton controls (Button, CheckBox, Switch) do not respond to Enter/Return keys by default.

AbstractButton controls (Button, CheckBox, Switch) do not respond to Enter/Return keys by default.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 95 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Minnakan
    wrote last edited by
    #1

    Problem:

    • Qt Quick Controls (Button, CheckBox, Switch, etc.) only respond to Space key, not Enter/Return
    • Enter/Return does nothing even when controls have keyboard focus
    • Inconsistent with standard UI behavior across other platforms

    Is this behavior intentional? Right now we have to add a manual Keys.onPressed workaround
    to every custom control. It would be great if AbstractButton handled Enter/Return by
    default for better accessibility and consistency with standard keyboard navigation. Are
    there any plans to add this in a future Qt release?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi and welcome to devnet,

      You should check over on the bug report system to see if there's something already opened on the subject.

      Which version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved