
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
@sayantan2512/react-virtual-keyboard
Advanced tools
This is a hookable virtual keyboard which can be used in react applications.
This is a hookable virtual keyboard which can be used in react applications.
To use it you can just import it
import { VirtualKeyboard } from 'virtual-keyboard';
<VirtualKeyboard
show={true}
output={(key) => console.log(key)}
onClose={() => {}}
layoutName="default"
changeButtonsDisplay={{
'{bksp}': 'Backspace',
'{enter}': 'Enter',
'{space}': 'Space',
}}
anchor={document.querySelector('input')}
ref={someRef}
/>
Props the keyboard can be passed to.
const [showKeyboard, setShowKeyboard] = useState(false);
<VirtualKeyboard
show={showKeyboard}
onClose={handleclose}
anchor={
"horizontal":350,
"vertical": 200,
}
/>
const onKeyPress = (btn) => {
console.log(btn)
}
<VirtualKeyboard
output={onKeyPress}
/>
const [showKeyboard, setShowKeyboard] = useState(false);
const handleclose = () => {
setShowKeyboard(false);
}
<VirtualKeyboard
onClose={handleclose}
/>
<VirtualKeyboard
layoutName="default"
/>
<VirtualKeyboard
changeButtonsDisplay={{'bksp': 'backspace',
'enter': '< enter',
'@': 'at',
"space":"spacebar"
}}
/>
<VirtualKeyboard
anchor={
"horizontal":350,
"vertical": 200,
}
/>
or
anchor={document.querySelector('input')}
<VirtualKeyboard
title={My Keyboard}
/>
npm install @sayantan2512/react-virtual-keyboard
For feature requests, bug reports, or any other inquiries regarding this project, please open an issue on the official GitHub repository:
We appreciate your feedback and will review all submissions diligently.
FAQs
This is a hookable virtual keyboard which can be used in react applications.
The npm package @sayantan2512/react-virtual-keyboard receives a total of 16 weekly downloads. As such, @sayantan2512/react-virtual-keyboard popularity was classified as not popular.
We found that @sayantan2512/react-virtual-keyboard demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.