Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
react-virtual-keyboard
Advanced tools
A on-screen keyboard (OSK) Component that works in the browser for reactJS. Useful for Kiosk Touchscreens.
Based on the Virtual Keyboard using jQuery: https://mottie.github.io/Keyboard/
npm install react-virtual-keyboard
import Keyboard from 'react-virtual-keyboard';
<Keyboard
value={this.state.input}
name='keyboard'
options={{
type:"input",
layout: "qwerty",
alwaysOpen: true,
usePreview: false,
useWheel: false,
stickyShift: false,
appendLocally: true,
color: "light",
updateOnChange: true,
initialFocus: true,
display: {
"accept" : "Submit"
}
}}
onChange={this.onInputChanged}
onAccepted={this.onInputSubmitted}
ref={k => this.keyboard = k}
/>
onInputChanged = (data) => {
this.setState({ input: data });
}
onInputSubmitted = (data) => {
console.log("Input submitted:", data);
}
this.keyboard.interface.keyaction.enter = (base) => {
// Enter button pressed
// Accepting content, as an example:
return this.keyboard.interface.keyaction.accept(base);
};
For more information, check out the API documentation: https://github.com/Mottie/Keyboard/wiki/Options
FAQs
Use jQuery Virtual Keyboard in react.js
The npm package react-virtual-keyboard receives a total of 1,391 weekly downloads. As such, react-virtual-keyboard popularity was classified as popular.
We found that react-virtual-keyboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.