function keyUpCallback(e) {
  var eventData = e.detail;
  var config = _freehand.freehand.getConfiguration();
  var keyCode = eventData.keyCode;
  var imageNeedsUpdate = false;

  if (keyCode === keyCodes.CTRL) {
    config.keyDown.ctrl = false;
    imageNeedsUpdate = true;
  }

  if (keyCode === keyCodes.SHIFT) {
    config.keyDown.shift = false;
  }

  if (keyCode === keyCodes.ALT) {
    config.keyDown.alt = false;
  }

  if (imageNeedsUpdate) {
    // Force onImageRendered to fire
    _externalModules2.default.cornerstone.updateImage(eventData.element);
  }
}
/**
* Event handler for KEY_UP event.
*
* @param {Object} e - The event.
*/
Event handler for KEY_UP event.
Event handler for KEY_UP event .
function keyUpCallback(e) {
  var eventData = e.detail;
  var config = _freehand.freehand.getConfiguration();
  var keyCode = eventData.keyCode;
  var imageNeedsUpdate = false;
  if (keyCode === keyCodes.CTRL) {
    config.keyDown.ctrl = false;
    imageNeedsUpdate = true;
  }
  if (keyCode === keyCodes.SHIFT) {
    config.keyDown.shift = false;
  }
  if (keyCode === keyCodes.ALT) {
    config.keyDown.alt = false;
  }
  if (imageNeedsUpdate) {
    _externalModules2.default.cornerstone.updateImage(eventData.element);
  }
}
function keyUpCallback ( e ) { var eventData = e . detail ; var config = _freehand . freehand . getConfiguration ( ) ; var keyCode = eventData . keyCode ; var imageNeedsUpdate = false ; if ( keyCode === keyCodes . CTRL ) { config . keyDown . ctrl = false ; imageNeedsUpdate = true ; } if ( keyCode === keyCodes . SHIFT ) { config . keyDown . shift = false ; } if ( keyCode === keyCodes . ALT ) { config . keyDown . alt = false ; } if ( imageNeedsUpdate ) { _externalModules2 . default . cornerstone . updateImage ( eventData . element ) ; } }
Event handler for KEY_UP event.
Event handler for KEY_UP event .
// Force onImageRendered to fire