Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
angular-virtual-keyboard
Advanced tools
An AngularJs Virtual Keyboard Interface based on GreyWyvern VKI
An AngularJs Virtual Keyboard Interface based on GreyWyvern VKI. See example in the Demo page.
$ bower install angular-virtual-keyboard
$ npm install angular-virtual-keyboard
Import the angular-virtual-keyboard.min.js
script in your page.
Include the module angular-virtual-keyboard
in your angular app.
Include the module angular-useragent-parser
in your angular app. Optional, used to auto hide the virtual keyboard interface in mobile devices.
Use the 'ng-virtual-keyboard' directive in any text fields, password fields or textareas:
<input type='text' ng-model="yourModel" ng-virtual-keyboard/>
The angular-virtual-keyboard module use an Angular.js Constant named VKI_CONFIG
to handle the configurations that will be applied to all instances of the ng-virtual-keyboard
directive. See list below:
VKI_CONFIG.layout
Array of Keyboard Layout configurations. See vki-layouts.js for keyboard layout configuration examples.VKI_CONFIG.deadkey
Array of Deadkeys configurations. See vki-deadkeys.js for deadkeys configuration examples.VKI_CONFIG.kt
Name of the layout configuration to be used as default (if no specific layout configuration is provided in the directive instance configuration). Default: 'US International'VKI_CONFIG.relative
Use true
to position the keyboard next to the input, false
to place in the bottom of page. Default: true
VKI_CONFIG.sizeAdj
Allow user to adjust keyboard size. Default: true
VKI_CONFIG.i18n
An array to replace the default labels of the keyboard interface. See example below:VKI_CONFIG.customClass
A CSS class name to add in the first html element of the keyboardVKI_CONFIG.i18n = {
'00': "Exibir teclado numérico",
'01': "Exibir teclado virtual",
'02': "Selecionar layout do teclado",
'03': "Teclas mortas",
'04': "Ligado",
'05': "Desligado",
'06': "Fechar teclado",
'07': "Limpar",
'08': "Limpar campo",
'09': "Versão",
'10': "Diminuir tamanho do teclado",
'11': "Aumentar tamanho do teclado"
};
The ng-virtual-keyboard
could receive an array with the configurations that will be applied to the keyboard interface instance of the input field. See list below:
kt
Change the default keyboard which displays first for each directive instance. Default: Defined in global configurationdeadkeysOn
To turn dead keys on or off by default. Default: truenumberPad
To enable de number pad button. Default: falseshowVersion
To show the VKI-core based version. Default: falseimageURI
By default the keyboard will be show on input field focus. Pass a image URI to add a clickable image next to inputs and replace the on focus default behavior. Default: falseshowInMobile
True to display the interface on mobiles devices. Default: falseforcePosition
Force to position the virtual keyborad above (use "top"
) or below (use "bottom"
) the input field. Use false
to let the directive choose the better position. Default: falseenterSubmit
Define a callback function for the enter key. Use relative
Use true
to position the keyboard next to the input, and false
to place in the bottom of page. Default: true
size
Five sizes based on font-size have been pre-programmed: 13px, 16px (default), 20px, 24px and 28px; corresponding to the sizes 1 to 5 respectively. Default: 3sizeAdj
Allow user to adjust keyboard size. Default: true
customClass
A CSS class name to add in the first html element of the keyboardSee example in the Demo page or the demo code
The MIT License (MIT)
Copyright (c) 2015 Daniel Campos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0.4.3 (2015-11-19)
<a name"0.4.2"></a>
FAQs
An AngularJs Virtual Keyboard Interface based on GreyWyvern VKI
The npm package angular-virtual-keyboard receives a total of 38 weekly downloads. As such, angular-virtual-keyboard popularity was classified as not popular.
We found that angular-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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.