1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-30 23:36:47 +02:00

Have Carousel ignore keyboard events from <input>s or <textarea>s; fixes #14991

This commit is contained in:
Chris Rebert
2014-11-03 18:35:35 -08:00
parent 425a985491
commit 469dc3ab1f
2 changed files with 43 additions and 0 deletions

View File

@@ -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