I use xdotool to type text into many different applications, XTerms, Web Browsers, Notepads, Minecraft, etc etc etc.
I have never seen this.
However I don't simply type the text but use a small script to ensure any shift, ctrl, alt, meta keys are all released first BEFORE trying to type the string.
Specifically have a script called keyboard_macro which takes a arguement of the string to type, or '-' to type the string given via stdin
And was developed from a long process where I explored useing keyboard macros from Window Manager Menus and Hotkeys
Specifically the script does...
xdotool keyup Super_L keyup Control_L keyup Alt_L keyup v
Then if typing from a stdin it runs...
xdotool type --clearmodifiers -delay 10 --file -
Or from a string argument "$1" (whcih is also given to xdotool as STDIN)
xdotool type --clearmodifiers -delay 10 --file - <<< "$1"
After that I can optionally add a return key
xdotool key Return
I used to use something like...
xdotool sleep 0.5 type -delay 0 "$1"
But it seemed to have problems with some unusual characters.
The script also has a switch to use the "xte" command from the "xautomation" package whcih can also inject keyboard events into the X window input stream.