flipperzero-firmware icon indicating copy to clipboard operation
flipperzero-firmware copied to clipboard

BadUSB: Keyboard Layouts

Open xMasterX opened this issue 2 years ago • 1 comments
trafficstars

This is a working and actual version of previous PR #1525 Originally made by @dummy-decoy and fixed by me

What's new

  • Ability to select keyboard layout in BadUSB app, so AZERTY, QWERTZ and other ones will work without modifying the badusb scripts
  • Tool that can be used to create .kl files - https://github.com/dummy-decoy/flipperzero_badusb_kl
  • Layouts can be added to microsd card into badusb/layouts/ folder

Verification

  • For this example your pc should be configured to use dvorak layout (or any other one non QWERTY)
  • Open demo script in badusb app, click left button to open config menu, select Keyboard layout
  • Select your layout, for example dvorak
  • Run script - verify that it works correct
  • Select regular ANSI QWERTY layout en-US for example while your PC has dvorak layout
  • Try again, see that script works same as on firmware without these change

Checklist (For Reviewer)

  • [ ] PR has description of feature/bug or link to Confluence/Jira task
  • [ ] Description contains actions to verify feature/bugfix
  • [ ] I've built this code, uploaded it to the device and verified feature/bugfix

xMasterX avatar Jan 06 '23 00:01 xMasterX

@nminaylov can you take a look?

skotopes avatar Jan 06 '23 17:01 skotopes

@xMasterX is it ok if @nminaylov will make couple changes in this code?

Also un-draft when ready.

skotopes avatar Feb 08 '23 07:02 skotopes

@xMasterX is it ok if @nminaylov will make couple changes in this code?

Also un-draft when ready.

Yes, sure, but I got no answer about hiding our “assets” folder named layouts. It will appear as empty folder in any case except case where we open it in file browser in “archive” app

xMasterX avatar Feb 08 '23 07:02 xMasterX

@nminaylov I did all requested changes, but please verify that I made it correctly, also you can do any changes to this PR if you need, I finished my part :)

xMasterX avatar Feb 08 '23 13:02 xMasterX

I'm going to approve and merge this PR. But it does require refactoring.

skotopes avatar Feb 08 '23 15:02 skotopes