Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rss-virtual-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-virtual-keyboard

Virtual keyboard for use in RSS tasks

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

How to use it

import Keyboard from 'rss-virtual-keyboard';

Init keyboard with input element selector and container selector

const kb = new Keyboard().init('.input-field', '.keyboard-container');

Or use HTMLElements

// Need to be HTMLInputElement or HTMLTextAreaElement
const input = document.createElement('input');
input.type = 'text';

// Any valid HTMLElement as container
const container = document.createElement('div');

const kb = new Keyboard().init(input, container);

And generate layout and subscribe on events

// Then enerate layout to the dom
kb.generateLayout();

// Subscribe to keypress events
kb.on('Enter', () => console.log('Enter button pressed'));
kb.on('Space', () => console.log('Space button pressed'));

Features:

  • Two languages: english and russian
  • Switch language button
  • Ctrl + Alt to change language using keyboard keys

Keywords

FAQs

Package last updated on 07 May 2020

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc