message: update modifierkeys on mouse input
diff: @@ -303,6 +303,13 @@ namespace InputObserver {
  }
  }
  + function updateModifierKeys(event: MouseEvent | WheelEvent | TouchEvent) {
  + modifierKeys.alt = event.altKey
  + modifierKeys.shift = event.shiftKey
  + modifierKeys.control = event.ctrlKey
  + modifierKeys.meta = event.metaKey
  + }
  +
  function handleBlur() {
  if (buttons || modifierKeys.shift || modifierKeys.alt || modifierKeys.meta || modifierKeys.control) {
  buttons = 0 as ButtonsType
  @@ -397,6 +404,7 @@ namespace InputObserver {
  onPointerMove(getCenterTouch(ev))
  } else {
  buttons = ButtonsType.Flag.Auxilary
  + updateModifierKeys(ev)
  pinch.next({
  delta: touchDelta,
  fraction: lastTouchDistance / touchDistance,
  @@ -414,16 +422,19 @@ namespace InputObserver {
  }
  function onMouseDown(ev: MouseEvent) {
  + updateModifierKeys(ev)
  buttons = getButtons(ev)
  onPointerDown(ev)
  }
  function onMouseMove(ev: MouseEvent) {
  + updateModifierKeys(ev)
  buttons = getButtons(ev)
  onPointerMove(ev)
  }
  function onMouseUp(ev: MouseEvent) {
  + updateModifierKeys(ev)
  onPointerUp(ev)
  endDrag()
  }
  