diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d318e6c4..70dc0c501 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - FIx crash with `ir universal` command (by @WillyJL) - Fix crash with `date` command (by @WillyJL) - OFW: Fix subghz chat command (by @GameLord2011) +- BadKB: Fix key combos main keys being case sensitive (by @WillyJL) - Sub-GHz: - UL: Fix CAME 24bit decoder (by @xMasterX) - UL: Tune holtek ht12x to decode holtek only and not conflict with came 12bit (by @xMasterX) diff --git a/applications/main/bad_usb/helpers/ducky_script.c b/applications/main/bad_usb/helpers/ducky_script.c index 5e1eaaa6f..b7bf356f1 100644 --- a/applications/main/bad_usb/helpers/ducky_script.c +++ b/applications/main/bad_usb/helpers/ducky_script.c @@ -213,9 +213,7 @@ static int32_t ducky_parse_line(BadUsbScript* bad_usb, FuriString* line) { // Main key char next_char = *line_cstr; - uint16_t main_key = ducky_get_keycode_by_name(line_cstr); - if(!main_key && next_char) main_key = BADUSB_ASCII_TO_KEY(bad_usb, next_char); - key = modifiers | main_key; + key = modifiers | ducky_get_keycode(bad_usb, line_cstr, true); if(key == 0 && next_char) ducky_error(bad_usb, "No keycode defined for %s", line_cstr);