Skip to content

Handle KEYCODE_DPAD_CENTER and KEYCODE_ENTER #1670

Closed

Description

@Hixie

http://developer.android.com/guide/topics/ui/accessibility/apps.html:

Handling directional controller clicks

On most devices, clicking a view using a directional controller sends a KeyEvent with KEYCODE_DPAD_CENTER to the view currently in focus. All standard Android views already handle KEYCODE_DPAD_CENTER appropriately. When building a custom View control, make sure this event has the same effect as touching the view on the touchscreen.

Your custom control should also treat the KEYCODE_ENTER event the same as KEYCODE_DPAD_CENTER. This approach makes interaction from a full keyboard much easier for users.

Activity

  1. added
    c: new featureNothing broken; request for a new capability
    platform-androidAndroid applications specifically
    frameworkflutter/packages/flutter repository. See also f: labels.
    engineflutter/engine related. See also e: labels.
    on Feb 8, 2016
  2. added this to the milestone on Feb 8, 2016
  3. added
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    and removed
    engineflutter/engine related. See also e: labels.
    on Feb 9, 2016
  4. modified the milestones: , on Sep 16, 2016
  5. modified the milestones: 2: Make Early Adopters happy, on Jan 26, 2017
  6. 11 remaining items

  7. mossmana commented on Nov 6, 2023

    @mossmana
    Contributor

    @gspencergoog I was considering picking this issue up, but would it make sense to wait until #136419 is complete?

  8. gspencergoog commented on Nov 6, 2023

    @gspencergoog
    Contributor

    Well... it's up to you. That won't be "finished" for more than a year, since once it's deprecated, we need to wait a year to remove the redundant code. So this bug will be open another year before being fixed. The down side of fixing it now is that you'll probably have to fix it for both kinds of events. It's not likely to be too complicated, however.

    Personally, I'd just fix it now regardless and we'll remove the redundant code when we remove the rest of it in a year.

  9. self-assigned this
    on Nov 6, 2023
  10. mossmana commented on Nov 8, 2023

    @mossmana
    Contributor

    I'll take a preliminary look at this issue. Tracking findings in https://docs.google.com/document/d/1Y984br0oLq2rkyQku4ve_zpR8lOeETb24ulCJN6yUls/edit?usp=sharing

  11. github-actions commented on Jan 17, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions