ThreePipe
    Preparing search index...

    Function viewerTakesKey

    • The key press is for this viewer, when the page has more viewers with actions: the viewer that has the focus (the target is in its container), else, when the focus is in no viewer (the page, a side panel), the viewer that had the last pointer press (else the first one). With one viewer on the page, every key is for it. A viewer that is not on the page takes a key only when no viewer with actions is.

      Parameters

      • viewer: ThreeViewer | undefined

        the viewer, or undefined: every key

      • event: KeyboardEvent

      Returns boolean