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

Function handleEscape

src/Offcanvas.js:211–220  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

209 }
210
211 handleEscape(e) {
212 if (this.props.isOpen && e.keyCode === keyCodes.esc && this.props.toggle) {
213 if (this.props.keyboard) {
214 e.preventDefault();
215 e.stopPropagation();
216
217 this.props.toggle(e);
218 }
219 }
220 }
221
222 onOpened(node, isAppearing) {
223 this.props.onOpened();

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…