applyFilters( “ignore_esc_key” )

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Filters
  6. applyFilters( “ignore_esc_key” )
DiviArea.applyFilters( 'ignore_esc_key', ignore );

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

Params

ignore
(bool) Whether to ignore the key press and do nothing

Examples

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

Notes

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.

Was this article helpful?

Related Articles