npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-touch-keyboard

v4.4.1

Published

Virtual Keyboard for Angular applications

Downloads

1,316

Readme

AngularTouchKeyboard

An Angular touch keyboard component that provides a customizable on-screen keyboard for input elements. Fully compatible with Angular, Angular Material, and Ionic Framework.

MIT licensed npm version Build Status

angular touch keyboard

Features

  • 📱 Responsive virtual keyboard
  • 🌐 Multiple locale support
  • 🎯 Flexible positioning
  • 🖥️ Full-screen mode support
  • 🎨 Customizable appearance
  • Ⓜ️ AngularMaterial support
  • ⏺️ Ionic Framework support
  • ⌨️ Smart native keyboard handling on mobile devices

Demo

https://mohsen77sk.github.io/angular-touch-keyboard/

Installation

npm install @angular/cdk ngx-touch-keyboard

Compatibility

The version of this library is synchronized with the major version of Angular to ensure compatibility.

| Angular Version | Package Version | | --------------- | --------------- | | >= 18.0.0 | 4.x | | >= 16.0.0 | 3.x | | >= 14.0.0 | 2.x |

Basic Usage

Import the NgxTouchKeyboardModule in your app.module.ts:

import { NgxTouchKeyboardModule } from 'ngx-touch-keyboard';

@NgModule({
  imports: [
    NgxTouchKeyboardModule
  ],
})
export class AppModule { }

If you want to set the custom locale, provide NGX_TOUCH_KEYBOARD_LOCALE by custom locale

  • default locale is enUS
import { NGX_TOUCH_KEYBOARD_LOCALE, faIR } from 'ngx-touch-keyboard';

@NgModule({
  providers: [
    { provide: NGX_TOUCH_KEYBOARD_LOCALE, useValue: faIR }
  ],
})
export class AppModule { }

Add the directive to your input elements:

Basic usage

<input ngxTouchKeyboard [(ngxTouchKeyboardOpen)]="isOpen">

Open keyboard on input focus

<input ngxTouchKeyboard ngxTouchKeyboardOpenOnFocus>

Basic usage in Ionic

<ion-input ngxTouchKeyboard [(ngxTouchKeyboardOpen)]="isOpen"></ion-input>

API Reference

Directives

NgxTouchKeyboard

@Directive({
  selector: `input[ngxTouchKeyboard],
             textarea[ngxTouchKeyboard],
             ion-input[ngxTouchKeyboard],
             ion-textarea[ngxTouchKeyboard]`,
})

Inputs

| Name | Type | Default | Description | | --------------------------------- | ------------------------ | ------- | ---------------------------------------------- | | ngxTouchKeyboardOpen | boolean | false | Controls the visibility of the keyboard | | ngxTouchKeyboardOpenOnFocus | boolean | false | Open the visibility of the keyboard On focus | | ngxTouchKeyboardLocale | Locale | enUS | Sets the keyboard locale | | ngxTouchKeyboardFullScreen | boolean | false | Enables full-screen mode | | ngxTouchKeyboardDebug | boolean | false | Enables debug mode | | ngxConnectedTouchKeyboardOrigin | NgxTouchKeyboardOrigin | null | Sets a custom origin for the keyboard position |

Methods

  • openPanel(): Opens the keyboard panel
  • closePanel(): Closes the keyboard panel
  • togglePanel(): Toggles the keyboard panel visibility

Advanced Usage

Custom locale

<input ngxTouchKeyboard [ngxTouchKeyboardLocale]="faIR">

Full-Screen Mode

<input ngxTouchKeyboard [ngxTouchKeyboardFullScreen]="true">

Custom Position Origin

<div ngxTouchKeyboardOrigin #origin="ngxTouchKeyboardOrigin">
  <input ngxTouchKeyboard [ngxConnectedTouchKeyboardOrigin]="origin">
</div>

Localization

AngularTouchKeyboard is localized in 8 keyboard-specific locales:

  • en-US English (United States) (default)
  • en-UK English (United Kingdom)
  • es-ES Spanish (Spain)
  • fa-IR Persian (Iran)
  • he-IL Hebrew (Israel)
  • ka-GE Georgian (Georgia)
  • ru-RU Russian (Russia)
  • sv-SE Swedish (Sweden)

Themes

Built-in themes

  • default: white theme
  • dark: dark theme

You must put the class dark in the body to use the dark theme.

Create custom theme

To customize the theme, you need to use css variables.

| Name | Description | | ------------------------------- | ------------------------------------- | | --tk-color-text | color of text button | | --tk-background | color of background panel | | --tk-background-button | color of background basic button | | --tk-background-button-fn | color of background functional button | | --tk-background-button-active | color of background active button |

Layouts

Depends on attribute inputmode, the keyboard layout is changed.

| inputmode | Screenshot | | --------------------- | -------------------------------------------------------------------------------------------------------- | | inputmode='text' | angular touch keyboard | | inputmode='search' | angular touch keyboard | | inputmode='email' | angular touch keyboard | | inputmode='url' | angular touch keyboard | | inputmode='numeric' | angular touch keyboard | | inputmode='decimal' | angular touch keyboard | | inputmode='tel' | angular touch keyboard |

Development

The most useful commands for development are:

  • npm run start to start a development server
  • npm run build-demo to build the demo locally (it will be published automatically by GitHub Actions)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

The MIT License (MIT)