All Projects → xwpongithub → better-keyboard

xwpongithub / better-keyboard

Licence: other
A js keyboard component for mobile.

Programming Languages

javascript
184084 projects - #8 most used programming language
stylus
462 projects

Projects that are alternatives of or similar to better-keyboard

react-keyview
React components to display the list, table, and grid, without scrolling, use the keyboard keys to navigate through the data
Stars: ✭ 16 (-70.91%)
Mutual labels:  keyboard
global-keypress
Global key press event emitter.
Stars: ✭ 25 (-54.55%)
Mutual labels:  keyboard
YetAnotherKeyDisplayer
The application for displaying pressed keys of the keyboard
Stars: ✭ 88 (+60%)
Mutual labels:  keyboard
angular2-instagram
🔥Instagram like photo filter playground built with Angular2 (Web | Desktop)
Stars: ✭ 91 (+65.45%)
Mutual labels:  webpack2
keykee
这是一个记录键盘的使用情况的软件,精确统计每个按键,按键24小时统计,按键频次趋势分析
Stars: ✭ 15 (-72.73%)
Mutual labels:  keyboard
keyboard
Maliit Keyboard, a free software virtual keyboard for Linux
Stars: ✭ 63 (+14.55%)
Mutual labels:  keyboard
KeyLy
A powerfull and awesome Keylogger(Your keyboard and your mouse) realy helpfull for hackers! :-P (C/C++)
Stars: ✭ 17 (-69.09%)
Mutual labels:  keyboard
openinput
Open source firmware for input devices
Stars: ✭ 43 (-21.82%)
Mutual labels:  keyboard
waffling60
Multi layout 60% PCB with support for common ANSI and ISO layouts and split space. SE-version is for use in Polaris, DB-version for use in Bakeneko/Kei.
Stars: ✭ 42 (-23.64%)
Mutual labels:  keyboard
SwipeSelection
An improvement to iOS's text editing that allows you to move the cursor and select text using gestures on the keyboard itself.
Stars: ✭ 99 (+80%)
Mutual labels:  keyboard
ucollage
An extensible command line image viewer inspired by vim
Stars: ✭ 161 (+192.73%)
Mutual labels:  keyboard
Medusa
Ble 5x7 Ortholinear Keyboard
Stars: ✭ 28 (-49.09%)
Mutual labels:  keyboard
creviceapp
Multi purpose utility which supports gestures with mouse and keyboard.
Stars: ✭ 22 (-60%)
Mutual labels:  keyboard
OttoKeyboardView
自定义键盘,支持数字、小数点、身份证、十六进制键盘、随机布局的安全数字键盘
Stars: ✭ 62 (+12.73%)
Mutual labels:  keyboard
usbhostcopro
USB Host Co-processor
Stars: ✭ 54 (-1.82%)
Mutual labels:  keyboard
Build-vue-hackernews-2.0-from-scratch
A tutorial for beginners to build a complex project with Vue.js 2.0 step by step
Stars: ✭ 85 (+54.55%)
Mutual labels:  webpack2
reviung41-build-guide
Build guide for the Reviung41 keyboard.
Stars: ✭ 16 (-70.91%)
Mutual labels:  keyboard
KioskBoard
KioskBoard - A pure JavaScript library for using virtual keyboards.
Stars: ✭ 114 (+107.27%)
Mutual labels:  keyboard
PGNumberKeyboard
一款非常简单漂亮灵活的自定义数字键盘.
Stars: ✭ 16 (-70.91%)
Mutual labels:  keyboard
swipe-keyboard
Swype type keyboard module for simple-keyboard
Stars: ✭ 32 (-41.82%)
Mutual labels:  keyboard

better-keyboard

A js keyboard component for mobile.

better-keyboard preview

立即使用

<body>
  <script type="text/javascript" src="jkeyboard.js"></script>
  <script type="text/javascript">
    var keyboard = new JKeyboard({
      onInput: function (key, rs) {
          // do something
      },
      onClose: function () {
         // do something
      },
      onShow: function () {
         // do something 
      },
      onDelete: function (rs) {
         // do something
      }
    });                             
  </script>
</body>

通过npm引入

安装better-keyboard

npm install better-keyboard --save-dev

引入better-keyboard

import JKeyboard from 'better-keyboard'

测试demo页

npm run dev

打开浏览器访问如下地址, 查看效果

localhost:9090

Options 参数

  • defaultResult: [] 默认值
  • containEl: body 父级容器
  • closeTitle: 完成 关闭按钮文本
  • max: 6 最大长度

Events 事件

  • onInput 点击数字按钮
  • onClose 键盘关闭
  • onClosed 关闭动画结束后
  • onShow 键盘打开
  • onDelete 点击删除按钮

实例方法

  • show 打开键盘
  • close 关闭键盘
  • empty 清空输入值
  • setResult 设置输入值
  • getResult 获取当前输入值
  • closeAndClear 关闭并清空已输入的值
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].