MCPcopy Create free account
hub / github.com/codecombat/codecombat / onRightPressed

Method onRightPressed

app/views/AboutView.js:106–113  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 3

isMethod · 0.80
dataMethod · 0.80
__guard__Function · 0.70

Tested by

no test coverage detected