Compare commits

..

8 Commits

Author SHA1 Message Date
Francisco Hodge
6ba68a21e6 npm version bump 2018-08-03 14:47:36 -04:00
Francisco Hodge
958019199a Removing peer dependencies 2018-08-03 14:46:53 -04:00
Francisco Hodge
65bf9362bd Dist update 2018-07-31 12:02:22 -04:00
Francisco Hodge
f4a5d946d6 npm version update 2018-07-31 12:00:02 -04:00
Francisco Hodge
12fcae865e Changed key "delete" to "backspace" as per suggestion 2018-07-31 11:58:19 -04:00
Francisco Hodge
5b84982812 npm version bump 2018-07-19 10:13:27 -04:00
Francisco Hodge
be6d1b0f93 Update badges 2018-07-19 10:13:09 -04:00
Francisco Hodge
0f5dad0527 Switching to JSDelivr for CDN use case 2018-07-13 17:23:28 -04:00
5 changed files with 11 additions and 13 deletions

View File

@@ -1,6 +1,8 @@
# simple-keyboard
[![npm](https://img.shields.io/npm/v/simple-keyboard.svg)](https://www.npmjs.com/package/simple-keyboard)
[![npm version](https://badge.fury.io/js/simple-keyboard.svg)](https://www.npmjs.com/package/simple-keyboard)
[![](https://data.jsdelivr.com/v1/package/npm/simple-keyboard/badge)](https://www.jsdelivr.com/package/npm/simple-keyboard)
<a href="https://franciscohodge.com/projects/simple-keyboard/"><img src="https://franciscohodge.com/project-pages/simple-keyboard/images/simple-keyboard.png" align="center"></a>
> The easily customisable and responsive on-screen virtual keyboard for Javascript projects.
@@ -61,14 +63,14 @@ function onKeyPress(button){
````html
<html>
<head>
<link rel="stylesheet" href="https://cdn.rawgit.com/hodgef/simple-keyboard/0581247fbeda4b2fb670ceaf3facebd3258fa04f/build/css/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-keyboard@latest/build/css/index.css">
</head>
<body>
<input class="input" placeholder="Tap on the virtual keyboard to start" />
<div class="simple-keyboard"></div>
<script src="https://cdn.rawgit.com/hodgef/simple-keyboard/d88912cd23d224a22a38da34cac7b645c6a8560c/build/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/simple-keyboard@latest/build/index.min.js"></script>
<script src="src/index.js"></script>
</body>
@@ -135,11 +137,11 @@ layoutName: "default"
### display
> Replaces variable buttons (such as `{bksp}`) with a human-friendly name (e.g.: "delete").
> Replaces variable buttons (such as `{bksp}`) with a human-friendly name (e.g.: "backspace").
```js
display: {
'{bksp}': 'delete',
'{bksp}': 'backspace',
'{enter}': '< enter',
'{shift}': 'shift',
'{s}': 'shift',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "simple-keyboard",
"version": "2.3.7",
"version": "2.3.11",
"description": "On-screen Virtual Keyboard",
"main": "build/index.js",
"scripts": {
@@ -75,10 +75,6 @@
"webpack-manifest-plugin": "1.3.2",
"whatwg-fetch": "2.0.3"
},
"peerDependencies": {
"react": ">=0.14",
"react-dom": ">=0.14"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,mjs}"

View File

@@ -53,7 +53,7 @@ class Utilities {
static getDefaultDiplay(){
return {
'{bksp}': 'delete',
'{bksp}': 'backspace',
'{enter}': '< enter',
'{shift}': 'shift',
'{s}': 'shift',