Skip to content

Keyboard sdk doesn't forward super, uhid doesn't work at all #5808

Description

@Pecacheu

Environment

  • OS: Windows 11
  • Scrcpy version: v3.1
  • Installation method: Binary release
  • Device model: Galaxy S24U
  • Android version: 14

Describe the bug

Hi, I'm trying to run DeX through scrcpy, and I mostly have it working, but I'm having keyboard-related issues. Under the default settings, keyboard input works fine, except for two problems: Firstly, the super/windows key isn't forwarded (this is annoying because this key is used by DeX), and secondly, the on-screen-keyboard won't go away because my phone is NOT detecting a physical keyboard present despite my typing.

I read the Keyboard guide and decided to try uhid mode with --keyboard=uhid and/or the -K option... When I enable this, a physical keyboard is detected by DeX and my second problem of the above is solved, OSK disappears. But now no matter which key I press, nothing happens. No input is forwarded at all!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions