Force destructive Enter

Reviewed and updated August 2020

[ Type code = ` ] This forces a destructive Enter key—e.g. make it always truncate field at position of the cursor. When using this code, the field is automatically cleared as soon as you enter the first character, except an exit key. Except for numeric fields, Enter usually exits a field without truncating or erasing any characters. See e code (force non-destructive) for information on how INFLD determines whether to use destructive or non-destructive carriage returns.

When the Force destructive Enter option is combined with the Force non-destructive Enter option (type e), INFLD tries to be smart about the decision of whether to truncate the field at the point of hitting Enter, as follows: If you use any field editing keys (arrows, insert, delete, etc.), or if the first key you strike is Enter, then it assumes you are working in WYSIWYG mode and does not truncate the field, otherwise it does.