applyFilters( "ignore_esc_key" )

applyFilters( "ignore_esc_key", ignore );

Allow manually ignoring the ESC keypress before an Area is hidden: Return true to ignore the keypress.


(bool, required) Whether to ignore the keypress and do nothing.


// Ignore all ESC keypresses.
DiviArea.addFilter( 'ignore_esc_key', function( ignore ) {
    return true;


This filter is only called, when an Area is visible that will be closed. When no Popup or other Area is visible, this filter is not fired.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.