Pressing Esc in a multiline edit control closes the dialog

I may already know this, but I most likely forgot, and I can't find anything about it in the docs.

It looks like if you have a multiline edit control in a dialog and press the Esc key while it has focus, the dialog will close (or trigger a close event if one is enabled) even if the Esc key isn't explicitly configured to do that. Is this intended? Is there a way to prevent it?

Esc closes dialogs in general. Doesn't the same thing happen for all control types?

Not sure but you might be able to give the dialog an Esc hotkey to override what happens.

you can bind it, i usually set mine to clear.

Esc certainly does not close dialogs in general - except if you mean windows dialogs in general, perhaps so. But not in DOpus. It does in Opus when you are in an multi-edit field. I'm fine with it because I'm a "mouse-man", I never use Esc in a dialog, I click the close button.

Which dialogs don't close when you push Esc? They'll be in a small minority.

Esc closing dialogs is the default behavior built into the OS; you can prevent it, but you have to explicitly intercept it to do so in most cases.

(Note: Not all windows are dialogs. The term has a specific meaning.)

Technically speaking Escape triggers the Cancel button, so if a dialog doesn't have a Cancel button Escape won't do anything by default.

Ok. Is kind of easy to workaround, I just wanted to let you know because, as far as I can tell, it only happens with multiline edit controls, in a dialog with no cancel button (I didn't test with a cancel button because what would be the point).

Indeed. None of my Opus dialogs close while hitting Esc (using windows 10). Except if the cursor is in a multiline control.