Definitely possible! I have no idea what the keyStuckDown variable is doing
actually, it may be possible it does nothing?

On Fri, Jul 5, 2013 at 2:57 PM, Philip Guo <notifications@github.com> wrote:

> In v3/js/iframe-embed.js:
>
> > +$(document).keydown(function(k) {
> > +  //if (!keyStuckDown) {
> > +  if (k.keyCode == 37) { // left arrow
> > +    if (myVisualizer.stepBack()) {
> > +      k.preventDefault(); // don't horizontally scroll the display
> > +      keyStuckDown = true;
> > +    }
> > +  }
> > +  else if (k.keyCode == 39) { // right arrow
> > +    if (myVisualizer.stepForward()) {
> > +      k.preventDefault(); // don't horizontally scroll the display
> > +      keyStuckDown = true;
> > +    }
> > +  }});
> > +//}
> > +
> >
>
> did you mean to add:
>
> +$(document).keyup(function(k) {
>
>    - keyStuckDown = false; +});
>
> to here as well?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pgbovine/OnlinePythonTutor/pull/40/files#r5048246>
> .
>