gwaldron/osgearth — pull request #264 by cedriclm (2012-11-08 11:59:57+00:00)
Title: Cancel current keyboard task only if the task corresponds to the directi...

When using keyboard arrows to make a pan on the map, the switch from a dx direction to a dy direction could miss if we release the old arrow after the new one.

Example:
Press up arrow -> KEYDOWN event --> set PAN with up direction
Press left arrow -> KEYDOWN event --> change PAN to left direction
Release up arrow -> KEYUP event --> set PAN off (task none)
The move is stopped whereas the left key is still pressed.