flipperzero-firmware
flipperzero-firmware copied to clipboard
BadUSB: Keyboard Layouts
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,QWERTZand other ones will work without modifying the badusb scripts - Tool that can be used to create
.klfiles - 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
@nminaylov can you take a look?
@xMasterX is it ok if @nminaylov will make couple changes in this code?
Also un-draft when ready.
@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
@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 :)
I'm going to approve and merge this PR. But it does require refactoring.