MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / handleKeyPress

Method handleKeyPress

src/Carousel.js:124–132  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

122 }
123
124 handleKeyPress(evt) {
125 if (this.props.keyboard) {
126 if (evt.keyCode === 37) {
127 this.props.previous();
128 } else if (evt.keyCode === 39) {
129 this.props.next();
130 }
131 }
132 }
133
134 handleTouchStart(e) {
135 if (!this.props.enableTouch) {

Callers

nothing calls this directly

Calls 2

previousMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected