Skip to content

Commit c2b426d

Browse files
authored
Merge pull request #66 from furcan/feature/add-enter-button
enter key added
2 parents 98c917b + bcddf6f commit c2b426d

22 files changed

+251
-135
lines changed

.dev/dev-allinone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* All In One Generator
33
*
44
* Description: Creates "kioskboard-aio.js" file automatically from "kioskboard.js" and "kioskboard.css" files.
5-
* Version: 2.2.0
5+
* Version: 2.3.0
66
* Author: Furkan ('https://github.com/furcan')
77
* Copyright 2022 All In One Generator, MIT Licence ('https://opensource.org/licenses/MIT')
88
*/

.dev/dev-constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* Constants
33
* Description: Constants for the development.
4-
* Version: 2.2.0
4+
* Version: 2.3.0
55
* Author: Furkan ('https://github.com/furcan')
66
* Copyright 2022 Constants, MIT Licence ('https://opensource.org/licenses/MIT')
77
*/

.dev/dev-minifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Minifier
33
*
44
* Description: Minify the KioskBoard scripts, and clean the KioskBoard styles to the distribution. (Used "Babel Minify", and "Clean CSS")
5-
* Version: 2.2.0
5+
* Version: 2.3.0
66
* Author: Furkan ('https://github.com/furcan')
77
* Copyright 2022 Minifier, MIT Licence ('https://opensource.org/licenses/MIT')
88
*/

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
@2.3.0
2+
* **Fixed:** Suggested fix for Autoscroll not happening - https://github.com/furcan/KioskBoard/pull/62 (Thanks [revaij83](https://github.com/revaij83))
3+
* **Fixed:** Specialcharacters keyboard close button is not visible when kioskboard-overflow class present - https://github.com/furcan/KioskBoard/issues/60
4+
* **Added:** Enter key added.
5+
- "`keysEnterText`", "`keysEnterCallback`", and "`keysEnterCanClose`" options are added.
6+
- https://github.com/furcan/KioskBoard/issues/50
7+
- https://github.com/furcan/KioskBoard/issues/55
8+
* **Changed:** Refactor.
9+
10+
-----
11+
112
@2.2.0
213
* **Added:** Using KioskBoard in embedded webview - https://github.com/furcan/KioskBoard/pull/51 (Thanks [surexxx](https://github.com/surexxx))
314
* **Added:** Add long press feature - https://github.com/furcan/KioskBoard/pull/53 (Thanks [surexxx](https://github.com/surexxx))

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ A pure JavaScript library for using virtual keyboards.
2222
---------
2323

2424
## Current Version
25-
2.2.0 [*](https://github.com/furcan/KioskBoard/blob/main/CHANGELOG.md)
25+
2.3.0 [*](https://github.com/furcan/KioskBoard/blob/main/CHANGELOG.md)
2626

2727
---------
2828

@@ -59,15 +59,15 @@ import KioskBoard from 'kioskboard';
5959
### CSS and JS
6060

6161
```html
62-
<link rel="stylesheet" href="dist/kioskboard-2.2.0.min.css" />
62+
<link rel="stylesheet" href="dist/kioskboard-2.3.0.min.css" />
6363

64-
<script src="dist/kioskboard-2.2.0.min.js"></script>
64+
<script src="dist/kioskboard-2.3.0.min.js"></script>
6565
```
6666

6767
### Or only JS (All in One - Internal CSS)
6868

6969
```html
70-
<script src="dist/kioskboard-aio-2.2.0.min.js"></script>
70+
<script src="dist/kioskboard-aio-2.3.0.min.js"></script>
7171
```
7272

7373
---------
@@ -156,6 +156,9 @@ KioskBoard.init({
156156
// The theme of keyboard => "light" || "dark" || "flat" || "material" || "oldschool"
157157
theme: 'light',
158158

159+
// Scrolls the document to the top or bottom(by the placement option) of the input/textarea element. Prevented when "false"
160+
autoScroll: true,
161+
159162
// Uppercase or lowercase to start. Uppercased when "true"
160163
capsLockActive: true,
161164

@@ -195,8 +198,14 @@ KioskBoard.init({
195198
// Size of the icon keys
196199
keysIconSize: '25px',
197200

198-
// Scrolls the document to the top or bottom(by the placement option) of the input/textarea element. Prevented when "false"
199-
autoScroll: true,
201+
// Text of the Enter key (Enter/Return). Without text => " "
202+
keysEnterText: 'Enter',
203+
204+
// The callback function of the Enter key. This function will be called when the enter key has been clicked.
205+
keysEnterCallback: undefined,
206+
207+
// The Enter key can close and remove the keyboard. Prevented when "false"
208+
keysEnterCanClose: true,
200209
});
201210
```
202211

build/kioskboard-aio.js

Lines changed: 72 additions & 42 deletions
Large diffs are not rendered by default.

dist/kioskboard-2.2.0.min.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

dist/kioskboard-2.2.0.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

dist/kioskboard-2.3.0.min.css

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/kioskboard-2.3.0.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)