Documentation - v0.32.0
    Preparing search index...
    • Find a button in the keyboard by its text or by predicate

      Type Parameters

      • T extends { text: string }

      Parameters

      • buttons: T[][]

        Two-dimensional array of buttons

      • predicate: string | ((btn: T) => boolean)

        Button text or predicate function

      Returns T | null