mcbopomofoweb
    Preparing search index...

    Helps to control the candidate window.

    Index

    Constructors

    Accessors

    Methods

    • Pass a key and return the corresponding candidate.

      Parameters

      • key: string

        The key from the keyboard, such as "1", "2", "a" and so on.

      Returns undefined | Candidate

      The corresponding candidate or the undefined value.

    • Updates the content of the candidate window.

      Parameters

      • candidates: Candidate[]

        All candidates.

      • keyCaps: string[]

        The key caps such as "123456789", "asdfghjkl" and so on.

      Returns void