Posted 13 March 2018, 3:49 am EST
Meenaksi,
Thanks for the reply. Note: I was able to implement the specific functionality using just the KeyDown event.
However, I now have the realization that I still need to allow the user to be able to output a new paragraph (the original ENTER key processing) because, otherwise, the user could not have mixed indents in one control.
The “normal” ENTER key would create a new paragraph (HTML “
”).
The “normal” SHIFT+ENTER key would output a newline (HTML “
”).
I can have ENTER perform a SendKey(<shift+enter>) BUT …
I was unable to get the normal ENTER processing because it would be translated to SHIFT+ENTER and the code would get into a loop.
Can you see any way that I can get the ENTER key alone to perform a newline (translating it to a SHIFT+ENTER like your solution above) and also get SHIFT+ENTER or some other key combination to perform the “normal” ENTER processing of creating a new paragraph?
Thanks.
– Paul