Taiga UI 5.0 is out!

KeyboardService ADDON-MOBILE

Examples Setup GitHub

A service that allows hiding and showing virtual keyboard programmatically on both Android and iOS devices

Does nothing on devices with no virtual keyboard or when input is not focused

Basic

    
      
    
    
      <tui-textfield>
    <input
        tuiInput
        [(ngModel)]="value"
    />
    <label tuiLabel>Type something</label>
</tui-textfield>

<p>
    <button
        tuiButton
        type="button"
        (mousedown.prevent.zoneless)="keyboard.toggle()"
    >
        Toggle
    </button>
</p>