Skip to content

Add keyboard support for InputInjector #12962

Closed

Description

@ramezgerges

What would you like to be added:

Currently, InputInjector only supports pointer actions. There's a separate (bug-ridden) KeyboardHelper, but ideally we would want to properly support keyboard actions inside InputInjector in the same way we do mouse/pointer actions (e.g. use a disposable handle for the input device instead of static methods to clean up all state at the end). This also allows better interactions between keyboard and pointer actions, e.g. having pointer actions check to see if a previous keyboard modifier key was held and adding the appropriate modifier information in the raised pointer events.

Why is this needed:

For which Platform:

  • WebAssembly
  • Android
  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

Anything else we need to know?

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jul 21, 2023
  2. added
    area/tests 🧪
    project/input ⌨️
    on Jul 21, 2023
  3. changed the title [-]Add keyboard support for InputInjector[/-] [+]Add keyboard support for `InputInjector`[/+] on Sep 20, 2023
  4. added
    difficulty/medium 🤔
    and removed
    triage/untriaged
    difficulty/tbd
    on Sep 20, 2023
  5. MartinZikmund commented on Jul 21, 2025

    @MartinZikmund
    Member

    Some keyboard support has already been implemented, closing for now

  6. github-actions commented on May 4, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  7. locked as resolved and limited conversation to collaborators on May 4, 2026
  8. MartinZikmund commented on Aug 26, 2026

    @MartinZikmund
    Member

    Reopening: this was closed as completed in July 2025, but InputInjector.InjectKeyboardInput is still unimplemented on all Uno targets — the generated stub throws NotImplementedException. PR #23970 implements it for the Skia targets and is linked to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tests 🧪difficulty/medium 🤔kind/enhancementproject/input ⌨️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions