
Hi,
When viewing an Intelliprompt list, pressing Enter closes the list, which is fine. However, on some occasions I would additionally like a carriage return to be inserted after pressing Enter. In other words, pressing enter would close the list and insert a carriage return.
I've tried to handle this in the Intelliprompt_Closing event and I can manually insert a carriage return using editor.Document.InsertText with a ModificationType of Enter. This works in that it inserts the carriage return but it doesn't move the caret (as it would when I normally press Enter to end a line). More importantly, it doesn't fire the SmartIndent event, which I'd need it to in my case.
Is there a way I can achieve what I'm trying to do? Essentially, on pressing Enter when handling an Intelliprompt list, I'd like to close the Intelliprompt list and subsequently for normal Enter key behaviour to occur.
Thanks,
Karl
When viewing an Intelliprompt list, pressing Enter closes the list, which is fine. However, on some occasions I would additionally like a carriage return to be inserted after pressing Enter. In other words, pressing enter would close the list and insert a carriage return.
I've tried to handle this in the Intelliprompt_Closing event and I can manually insert a carriage return using editor.Document.InsertText with a ModificationType of Enter. This works in that it inserts the carriage return but it doesn't move the caret (as it would when I normally press Enter to end a line). More importantly, it doesn't fire the SmartIndent event, which I'd need it to in my case.
Is there a way I can achieve what I'm trying to do? Essentially, on pressing Enter when handling an Intelliprompt list, I'd like to close the Intelliprompt list and subsequently for normal Enter key behaviour to occur.
Thanks,
Karl