Open FoamyGuy opened 2 years ago
I'm not sure what the right thing to do here is. We could send extra characters to delete and send the rest of the line. I'm worried it's going to add a lot of logic. This might be a case that the full serial on code.circuitpython.org is better to use.
My first thought is I would probably just listen to the keydown
event for arrows and send it via serial.
However, there are some other cases to watch out for:
We should be able to disable the mousedown
event to fix the mouse cursor problem. For pasting, there's a paste event and we could either prevent anything from being inserted or just send it via serial.
This seems like an interesting challenge. The logic shouldn't add too much to the size.
I don't think this is important to do because it only impacts the offline serial terminal. I'd rather focus on code.cp.org
Right, that's what I'm focusing on. I was just adding my thoughts to the mix.
CircuitPython version
Code/REPL
But with arrow keys used to move cursor after the parens.
Behavior
The left arrow does move the cursor in the input box, but the text getting sent to serial doesn't come out the same, it seems to be missing the left arrow presses that changed the location of the cursor.
Description
No response
Additional information
https://user-images.githubusercontent.com/2406189/179326903-9564d0a2-2b0d-4d57-a9c6-ec011d02e9c1.mp4