| 104 | } |
| 105 | |
| 106 | onRightPressed (event) { |
| 107 | // Special handling, otherwise after you click the control, keyboard presses move the slide twice |
| 108 | if ((event.type === 'keydown') && $(document.activeElement).is('.carousel-control')) { return } |
| 109 | if (__guard__($('#screenshot-lightbox').data('bs.modal'), x => x.isShown)) { |
| 110 | event.preventDefault() |
| 111 | return $('#screenshot-carousel').carousel('next') |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | onLeftPressed (event) { |
| 116 | if ((event.type === 'keydown') && $(document.activeElement).is('.carousel-control')) { return } |