So I combined Beerider's keyboard and Binary's newer scratchpad code into the ugliest hack ever. I was inspired by Cap Orso's hack to output all three formats all the time. It appears to be working on my system. I will upload it here for testing. No guarantees it will work for you. I am not a LUA coder.
SORRY...the scratchpad always starts visible. If you decide to just uncomment the hide() function, the entire lua script may not load (it didn't for me...)
Use keyboard CTRL SHFT X to close.
I recommend assigning a button to Ctrl Shift X to open and close the scratchpad in VR
The little X is for closing the scratchpad in VR if you want to do it with the mouse or VR head movement
Use the checkbox (second row right side of the keyboard) to bring up the white dot during F10 map
Escape will release the cursor from the text area
This files are in \Saved Games\DCS.openbeta\Scratchpad\0000.txt
Let me know if it works for you...
scratchpad-hook_ifly53e.rar