Split Paragraph on Enter (Instead of Showing Content Completion List)
Use Case
You want to split the paragraph on Enter instead of showing the content completion list.
Solution
Yes, it is possible by creating your own custom operation.
To obtain this behavior, follow this procedure:
- Create a custom
Author mode operation that handles the split. You can
use the
AuthorDocumentController.split
API to achieve this. - Create a JAR library that contains its compiled version.
- Open the Preferences dialog box , go to Document Types Association, and select your framework.
- Click Edit and in the Document Type configuration dialog box, go to the Classpath tab and add a reference to the JAR library for your custom operation.
- Go to the Author tab, then go to the Actions subtab.
- Click the New button and use the Action dialog box to create your own paragraph split action.
- Make sure you assign Enter as the Shortcut Key and specify your custom operation in the Operations section.
Result: Now, when you press Enter, your Java operation will be invoked to split the paragraph instead of opening the Content Completion Assistant.
Tip: The Content Completion Assistant can still be invoked by using
the Ctrl+Space keyboard shortcut.