mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-02 22:18:56 -07:00
BadKB: Fix key combos main keys being case sensitive (#408) --nobuild
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user