Duckuino icon indicating copy to clipboard operation
Duckuino copied to clipboard

Backslashes need double key presses in Fr-Ca keyboard

Open Build-0-Matic opened this issue 6 years ago • 8 comments

Hi! I have just figures out the problem with the Fr-Ca keyboard layout, but the solution eludes me. It seems that the backslash needs to be double pressed in order to print properly. It's like the first one was escaping the second... I tried just doubling them up but this makes the script not always compile, especially when there are only 2. Is there a way to modify the keyboard.cpp to "double press" the backslash key?

Build-0-Matic avatar Aug 31 '18 22:08 Build-0-Matic

Hello @Build-0-Matic, this seems that this is a system-dependent issue, on what OS are you running ? Thanks !

lowlevl avatar Apr 29 '19 13:04 lowlevl

I'm running Windows 10 Home Fall creator update 64 bit.

Build-0-Matic avatar Apr 29 '19 15:04 Build-0-Matic

And when you type the \ by hand do you need to type it twice ?

lowlevl avatar Apr 30 '19 10:04 lowlevl

No, when I type by hand it's just AltCar+\

Build-0-Matic avatar Apr 30 '19 19:04 Build-0-Matic

Hello again @Build-0-Matic, this is weird, but I had the same issue in the French layout, and I didn't found any workaround, just maybe type the \ twice ?

lowlevl avatar Jul 06 '19 10:07 lowlevl

That's what I have to do. I find it quite annoying but I have the feeling that to fix it it would need a full re-write of the code. I did recently check out how the Hak5 Bash Bunny works. They use the same language files for the USB Rubber Ducky's new HTML encoder. They have a JSON file to which the script passes the keystrokes. The JSON simply says this letter needs to be that key. And they have special combo keys listed separately as these don't change from one keyboard to the next. In the end it looks like this "\"":"02,00,1f", Where the first key is the modifier, 02 being SHIFT The second is left empty, hence the 00 The third is the key to press on the keyboard in hex, 1f being the first key of the top row before the 1.

This system doesn't need the double keypress.

Build-0-Matic avatar Jul 06 '19 19:07 Build-0-Matic

Hmm, quite cool, the problem is not in Duckuino tho, it's in the Arduino HID core, because when we say to press \ it doesn't. But I think there could be a workaround, like I did for the Alt Gr keys.

lowlevl avatar Jul 06 '19 22:07 lowlevl

While working on the rubber ducky keymaps, I did notice that ALT-GR is the same as CTRL+ALT Maybe there's part of the solution there. Or maybe get it to type that key as double everytime... but I can't remember if it needed to be pressed 3 or 4 times if you ask for a \ \

Build-0-Matic avatar Jul 07 '19 17:07 Build-0-Matic