Socket
Socket
Sign inDemoInstall

simple-virtual-keyboard

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-virtual-keyboard

Virtual keyboard


Version published
Weekly downloads
8
decreased by-65.22%
Maintainers
1
Install size
66.7 kB
Created
Weekly downloads
 

Readme

Source

Simple Virtual Keyboard

Install:

npm i -S simple-virtual-keyboard

Setup:

const keyboard = new Keyboard({
    layout: DefaultKeyboardLayout(handler, layoutConfig)
})

Add languages (en and ru built-in):

const keyboard = new Keyboard({
    layout: DefaultKeyboardLayout(handler, layoutConfig),
    width: "100%" // ...layout additional settings
}, [
    // Languages list
    RussianLanguage(writeText, layoutConfig)
])

Custom layout and languages:

const Language/Layout = (
    onPress: (
        code: string,
        content: string,
        isBackspace: boolean,
        isTab: boolean,
        isEnter: boolean,
        isSpace: boolean,
        isShift: boolean
    ) => void = () => {},
    additionalSettings: Partial<KeyboardLayoutInterface> = {}
): KeyboardLayoutInterface => {
    return {
        ...your language/layout config
    }
)

Demo

git clone https://github.com/Arslanoov/virtual-keyboard.git

npm i

npm run demo

Keywords

FAQs

Last updated on 03 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc