Closed bjones1 closed 7 years ago
I like the paste idea. Why are you emitting the text one character at a time, instead of sending it all in one go as in the else
block? (See also the implementation for insertFromMimeData
which emits keyPressed
with the entire block of data.)
Ignorance :). I'd just assumed keyPressed only worked on a character at a time. Replacing the for loop with emit keyPressed(originalText);
works just fine based on a quick test, and is certainly better code.
OK cool. I'll set this up when I get a chance. v1.1 should follow soon-ish, as time permits.
Great! Thanks.
Would you have time to build another release in the near future? I'd like students to install v1.1 of the bootloader in next week's lab, so they'll have a working paste option.
Oh sure, sorry for delay. I'll see what I can do soon.
Thanks!
This is a lazy pull request / feature request. For Micro, I'd like students to be able to paste text to the InterceptPlainTextEdit, to check how many characters sent produce an overflow. Here's a suggested patch to
InterceptPlainTextEdit.h
starting at line 41. That works for me, but I'd appreciate help in building the static version so I can distribute the updated version.