enter_key Callback Type
Function prototype:
function funcname (doc, flags, op)
enter_key is called whenever the ENTER key is pressed. The default binding can be changed using this callback.
Arguments
• doc is the current document associated with this function.
• flags is a bit mask providing information about the following operation: 0x0001 — the SHIFT key is pressed.
• op is the standard doc_add_callback operation number (1 on the first call, 2 on the second).
This callback can be used to implement application-specific behavior for the ENTER key for a document or a document type, or for all documents if the callback is registered with 0 as the first parameter to doc_add_callback.