Skip to content

Commit

Permalink
v1.26.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jan 8, 2017
1 parent 747a1e4 commit 67fa524
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 22 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ Wiki: [Home](https://github.com/Mottie/Keyboard/wiki/Home) | [FAQ](https://githu

Only the latest changes will be shown below, see the [wiki log](https://github.com/Mottie/Keyboard/wiki/Log) to view older versions.

### Verison 1.26.9 (1/7/2017)

* Core:
* Chained functions stop when keyboard is hidden.
* Add `getKeySet` method. See [issue #504](https://github.com/Mottie/Keyboard/issues/504).
* Docs:
* Update `typeIn` code for meta demo.

### Verison 1.26.8 (1/5/2017)

* Core:
Expand Down Expand Up @@ -167,15 +175,3 @@ Only the latest changes will be shown below, see the [wiki log](https://github.c
### Version 1.26.7 (12/23/2016)

* Core: prevent form submission on hidden input. Fixes [issue #500](https://github.com/Mottie/Keyboard/issues/500).

### Version 1.26.6 (11/28/2016)

* Core:
* Move caret call before blur prevents jumping. See [pull #499](https://github.com/Mottie/Keyboard/pull/499); thanks [@bastih](https://github.com/bastih)!
* Prevent default only on locked input. See [issue #495](https://github.com/Mottie/Keyboard/issues/495) & [pull #497](https://github.com/Mottie/Keyboard/pull/497); thanks [@uNmAnNeR](https://github.com/uNmAnNeR)!
* Minor linting update.
* Include select elements in tab navigation. Fixes [issue #489](https://github.com/Mottie/Keyboard/issues/489).
* Scramble:
* Two different custom layouts now working. See [issue #493](https://github.com/Mottie/Keyboard/issues/493) & [pull #494](https://github.com/Mottie/Keyboard/pull/494).
* Docs:
* Update theme switcher.
2 changes: 1 addition & 1 deletion dist/js/jquery.keyboard.extension-all.min.js

Large diffs are not rendered by default.

23 changes: 21 additions & 2 deletions dist/js/jquery.keyboard.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery UI Virtual Keyboard v1.26.8 *//*
/*! jQuery UI Virtual Keyboard v1.26.9 *//*
Author: Jeremy Satterfield
Maintained: Rob Garrison (Mottie on github)
Licensed under the MIT License
Expand Down Expand Up @@ -213,6 +213,7 @@ http://www.opensource.org/licenses/mit-license.php
};

base.toggle = function () {
if (!base.isVisible()) { return; }
var $toggle = base.$keyboard.find('.' + $keyboard.css.keyToggle),
locked = !base.enabled;
// prevent physical keyboard from working
Expand Down Expand Up @@ -1151,6 +1152,7 @@ http://www.opensource.org/licenses/mit-license.php

// Insert text at caret/selection - thanks to Derek Wickwire for fixing this up!
base.insertText = function (txt) {
if (!base.isVisible()) { return; }
if (typeof o.beforeInsert === 'function') {
txt = o.beforeInsert(base.last.event, base, base.el, txt);
}
Expand Down Expand Up @@ -1203,7 +1205,7 @@ http://www.opensource.org/licenses/mit-license.php

// check max length
base.checkMaxLength = function () {
if (!base.isCurrent()) { return; }
if (!base.isVisible()) { return; }
var start, caret,
val = base.$preview.val();
if (o.maxLength !== false && val.length > o.maxLength) {
Expand Down Expand Up @@ -1239,6 +1241,22 @@ http://www.opensource.org/licenses/mit-license.php
}
};

base.getKeySet = function () {
var sets = [];
if (base.altActive) {
sets.push('alt');
}
if (base.shiftActive) {
sets.push('shift');
}
if (base.metaActive) {
// base.metaActive contains the string name of the
// current meta keyset
sets.push(base.metaActive);
}
return sets.length ? sets.join('+') : 'normal';
};

// make it easier to switch keysets via API
// showKeySet('shift+alt+meta1')
base.showKeySet = function (str) {
Expand All @@ -1261,6 +1279,7 @@ http://www.opensource.org/licenses/mit-license.php
};

base.showSet = function (name) {
if (!base.isVisible()) { return; }
o = base.options; // refresh options
var kbcss = $keyboard.css,
prefix = '.' + kbcss.keyPrefix,
Expand Down
6 changes: 3 additions & 3 deletions dist/js/jquery.keyboard.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.keyboard.extension-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀▀██
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
*/
/*! jQuery UI Virtual Keyboard (1.26.8) - ALL Extensions + Mousewheel */
/*! jQuery UI Virtual Keyboard (1.26.9) - ALL Extensions + Mousewheel */
/*! jQuery UI Virtual Keyboard Alt Key Popup v1.1.1 *//*
* for Keyboard v1.18+ only (1/10/2016)
*
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.keyboard.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! jQuery UI Virtual Keyboard v1.26.8 *//*
/*! jQuery UI Virtual Keyboard v1.26.9 *//*
Author: Jeremy Satterfield
Maintained: Rob Garrison (Mottie on github)
Licensed under the MIT License
Expand Down
2 changes: 1 addition & 1 deletion keyboard.jquery.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "keyboard",
"title": "Keyboard",
"version": "1.26.8",
"version": "1.26.9",
"description": "Virtual Keyboard using jQuery UI",
"author": {
"name": "Jeremy Satterfield",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "virtual-keyboard",
"title": "Keyboard",
"description": "Virtual Keyboard using jQuery UI",
"version": "1.26.8",
"version": "1.26.9",
"author": {
"name": "Jeremy Satterfield",
"url": "https://github.com/jsatt"
Expand Down

0 comments on commit 67fa524

Please sign in to comment.