Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad USB feature ignores keyboard layout setting (DE-CH) #4072

Open
ThWunderlin opened this issue Jan 18, 2025 · 0 comments
Open

Bad USB feature ignores keyboard layout setting (DE-CH) #4072

ThWunderlin opened this issue Jan 18, 2025 · 0 comments
Assignees
Labels
Bug USB BadUSB + physical USB interface

Comments

@ThWunderlin
Copy link

Describe the bug.

When using the Bad USB feature with DE-CH keyboard layout selected, the Flipper Zero appears to still send US keyboard scancodes instead of using the selected layout.

Reproduction

  1. Set Flipper Zero Bad USB keyboard layout to DE-CH
  2. Connect to MacBook Pro with Swiss German keyboard layout (DE-CH)
  3. Run the default Bad USB demo script or a simple test script
  4. Observe character mapping issues

Expected behavior:

  • Flipper Zero should send correct scancodes matching the selected DE-CH layout
  • Special characters should be correctly mapped for Swiss German layout

Actual behavior:

  • Flipper Zero sends US keyboard scancodes regardless of selected layout
  • This causes incorrect character mapping on Swiss German MacOS:
    • ! becomes +
    • " becomes à
    • § becomes ç
    • ( becomes -
    • ) remains )
    • = becomes ^
    • ? becomes _
    • \ becomes
    • @ becomes ä
    • becomes *

Test Environment:

  • Device: MacBook Pro
  • OS: MacOS with Swiss German (DE-CH) keyboard layout
  • Flipper Zero Firmware: [Your firmware version]
  • Also tested with Unleashed firmware with same results

Additional Notes:

  • Same behavior observed with both official and Unleashed firmware
  • Changing Flipper Zero keyboard layout setting has no effect on the output

Target

No response

Logs


Anything else?

No response

@skotopes skotopes self-assigned this Jan 23, 2025
@skotopes skotopes added USB BadUSB + physical USB interface Bug labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug USB BadUSB + physical USB interface
Projects
None yet
Development

No branches or pull requests

2 participants