Hello, my fellow web developers, it’s time for a new release of your favorite image-area-selecting jQuery plugin — here’s imgAreaSelect 0.6.
This version introduces two new features: keyboard support, which makes it possible to manipulate the selection using arrow keys, and the
persistent option, which prevents the user from starting a new selection (so the user can only resize and move the pre-selected area).
The plugin now responds differently to clicking outside the selection area — the current selection is discarded, but a new one is not started until the user begins moving the mouse pointer. This way it’s possible to cancel the selection by clicking in the outer area and not end up with a 0×0 border, as it happened with the previous versions.
Drat, I just noticed a leftover debugging statement (which displayed keyboard codes in
window.status) in the newly released version. I removed it and released the updated code as version 0.6.1.