in reply to Tk::Canvas' response to keystrokes

You made your canvas scrollable, i.e. the canvas is bigger as the viewable area displayed. I tried your script and all cursor keys moved the canvas, not only the left-arrow key. Not sure if you meant that or your operation system (which seems to be windows) or something else mucks about with the other cursor keys

By far the easiest solution to your problem: Make the viewable area the same size as the canvas.

Replies are listed 'Best First'.
Re^2: Tk::Canvas' response to keystrokes
by TomKane (Beadle) on Feb 08, 2009 at 15:22 UTC
    Thanks. That did the trick. My addition of -scrollregion was actually a last minute stab and it had some effect in the left direction but not for moving the right arrow. I had really meant to leave it out before putting my example up on the forum.

    Anyway, when I changed the program line, thus:

    -scrollregion => [ 0, 0, $width, $height ],

    everything worked just as advertised. Thanks again. Tom