function tsKeyReleaseFcn(eventSrc,eventData,h)

%% Key release callback for time plots which updates the 
%% time vector after an arrow translation. This cannot be done
%% during each key press because updating on each key press makes
%% key translation too slow
if eventData.getID == java.awt.event.KeyEvent.KEY_RELEASED && ...
        strcmp(h.State,'TimeseriesTranslate') 
    h.move([],'keyrelease')

    %% Resume queing
    h.State = 'None';
    drawnow 
    h.State = 'TimeseriesTranslate';
end