🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

simple-virtual-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-virtual-keyboard

Virtual keyboard

0.2.2
latest
Source
npm
Version published
Maintainers
1
Created
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

javascript

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

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