MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / handleEscape

Function handleEscape

src/Modal.js:250–264  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

248 }
249
250 handleEscape(e) {
251 if (this.props.isOpen && e.keyCode === keyCodes.esc && this.props.toggle) {
252 if (this.props.keyboard) {
253 e.preventDefault();
254 e.stopPropagation();
255
256 this.props.toggle(e);
257 } else if (this.props.backdrop === 'static') {
258 e.preventDefault();
259 e.stopPropagation();
260
261 this.handleStaticBackdropAnimation();
262 }
263 }
264 }
265
266 handleStaticBackdropAnimation() {
267 this.clearBackdropAnimationTimeout();

Callers

nothing calls this directly

Calls 1

toggleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…