diff options
| author | Chris Rebert <[email protected]> | 2014-11-03 18:35:35 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-11-04 16:23:44 -0800 |
| commit | 469dc3ab1fb991027d073cd3ffe6907361b1f058 (patch) | |
| tree | 77b33a16201d479da5a948c074d8bd1a7d842a18 /js/carousel.js | |
| parent | 425a985491b5c8f72bfcf483f5449f52b8d21af0 (diff) | |
| download | bootstrap-469dc3ab1fb991027d073cd3ffe6907361b1f058.tar.xz bootstrap-469dc3ab1fb991027d073cd3ffe6907361b1f058.zip | |
Have Carousel ignore keyboard events from <input>s or <textarea>s; fixes #14991
Diffstat (limited to 'js/carousel.js')
| -rw-r--r-- | js/carousel.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/carousel.js b/js/carousel.js index 4e4e47797..82106d278 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -42,6 +42,7 @@ } Carousel.prototype.keydown = function (e) { + if (/input|textarea/i.test(e.target.tagName)) return switch (e.which) { case 37: this.prev(); break case 39: this.next(); break |
