Skip to content

Commit 9824c4e

Browse files
committed
version bump
1 parent b53d461 commit 9824c4e

File tree

5 files changed

+25
-86
lines changed

5 files changed

+25
-86
lines changed

README.md

Lines changed: 19 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,25 @@ Wiki: [Home](https://github.com/Mottie/Keyboard/wiki/Home) | [FAQ](https://githu
8888

8989
Only the latest changes will be shown below, see the wiki log to view older versions.
9090

91+
### Version 1.25.1 (8/17/2015)
92+
93+
* Change `package.json` to use the new spdx license expression syntax.
94+
* Core
95+
* Add keyboard data to the preview input & keyboard, so using any of these methods will return the keyboard object:
96+
97+
```js
98+
// original method
99+
var keyboard = $('input').data('keyboard');
100+
// find currently focused keyboard & get keyboard object from it
101+
var keyboard = $('.ui-keyboard-has-focus').data('keyboard');
102+
// find currently focused keyboard preview input (only works if usePreview is true)
103+
var keyboard = $('.ui-keyboard-has-focus .ui-keyboard-preview').data('keyboard');
104+
```
105+
106+
Thanks to [@isfs](https://github.com/isfs) for these additions!
107+
108+
* Autocomplete: correctly position autocomplete popup on subsequent keyboard openings. Fixes [issue #382](https://github.com/Mottie/Keyboard/issues/382).
109+
91110
### Version 1.25.0 (8/12/2015)
92111

93112
* Core
@@ -115,83 +134,3 @@ Only the latest changes will be shown below, see the wiki log to view older vers
115134
* Avoid javascript errors when caret extension used without a preview window.
116135
* Caret is now removed when keyboard is hidden (when `userPreview` is `false`).
117136
* Thanks [@isfs](https://github.com/isfs); see [pull #376](https://github.com/Mottie/Keyboard/pull/376).
118-
119-
### Version 1.24.0 (8/2/2015)
120-
121-
#### Docs
122-
123-
* Use protocol-relative urls
124-
* Add font-awesome to repository. Removes initial delay in page rendering.
125-
126-
#### Core
127-
128-
* Clear key now enables `{dec}` key. See [issue #370](https://github.com/Mottie/Keyboard/issues/370).
129-
* Add processName function
130-
* Previously, if a `t` and `test` button were added to a layout
131-
132-
```js
133-
'normal' : [ 't test st\u03b1\u03b2\u03bexyz' ]
134-
```
135-
136-
both keys would end up with a class name of `ui-keyboard-t`, because only the first letter was used.
137-
138-
* The `processName` function now includes all characters, so the class name for the `test` button would become `ui-keyboard-test`.
139-
* If there are any non-alphanumeric characters, the character code for each symbol would be used instead. So a `stαβξxyz` button would have a class name of `ui-keyboard-st-945-946-958xyz` (notice that there is not a `-` between the `958` and `xyz`, this is because alphanumeric characters don't get a `-` added in front.
140-
* Dashes are left in as-is (e.g. `test-xx` stays as `test-xx`, or `test-αβ` becomes `test-945-946`).
141-
* Underscores are left as-is when followed by an alphanumeric character (e.g. `test_xx` stays as `test_xx`). When followed by a non-alphanumeric character, the underscore is followed by a dash, then the decimal ascii value of the character (e.g. `test_\u03b1\u03b2` becomes `test_-945-946`).
142-
* The result is this processed name is added after the virtual key prefix contained in `$.keyboard.css.keyPrefix` (default is `ui-keyboard-`). So a key named "test-αβ" in the layout will have a class name of `ui-keyboard-text-945-946`.
143-
* The result of this function is saved to the virtual key's `data-name` attribute.
144-
* The `data-name` attribute replaces the `name` attribute on buttons
145-
* `data-name` contains the suffix of the virtual button class name (e.g. `text-945-946` from the last example)
146-
* Modified `showSet` function to allow passing the keyset name instead of the key element (which looked for `el.name`)
147-
* The `lockInput` option now blocks backspace, enter, capslock and pasting from the physical keyboard.
148-
* Mapped keys
149-
* Now work correctly without the mousewheel plugin. Fixes [issue #373](https://github.com/Mottie/Keyboard/issues/373).
150-
* The mapped character will be now be run through the processName function and used in the virtual key class name
151-
* Add `buildKey` callback function: it allows the modification of the text of the virtual key, like add line breaks or modify the HTML.
152-
* Add `useWheel` option:
153-
* Setting this option to `true` (default) allows using the mousewheel while hovering over a virtual key to show key content from other keyset layers.
154-
* Setting it as `false` will now limit the amount of processing that occurs while hovering over a virtual key.
155-
* Add callback function to the `destroy` function
156-
157-
```js
158-
// no parameters
159-
$('input')data('keyboard').destroy(function(){
160-
alert('keyboard destroyed');
161-
});
162-
```
163-
164-
* Add `layout` parameter to `customHash` function as a start to adding QUnit testing.
165-
166-
#### Action keys
167-
168-
* Add zero-width keys & non-breaking space as action keys:
169-
* `{NBSP}` - non-breaking space.
170-
* `{ZWNJ}` - zero-width non-joiner.
171-
* `{ZWJ}` - zero-width joiner.
172-
* `{LRM}` - left-to-right mark.
173-
* `{RLM}` - right-to-left mark.
174-
* `keyaction` definitions can now be set as a string instead of a function. The following two functions are *equivalent*:
175-
176-
```js
177-
// new method
178-
$.keyboard.keyaction.kirby = '<('-'<) ^('-')^ (>'-')>';
179-
// original/alternative method
180-
$.keyboard.keyaction.kirby = function( base ) {
181-
base.insertText('<('-'<) ^('-')^ (>'-')>');
182-
}
183-
```
184-
185-
#### Caret
186-
187-
* Use `$.keyboard.caret(#)` where `#` sets the start & end of the caret (no text is selected).
188-
* Use `$.keyboard.caret('start')` or `$.keyboard.caret(0)` to move the caret to the beginning.
189-
* Use `$.keyboard.caret('end')` (or, really any string that isn't `'start'`) to move the caret to the end.
190-
191-
#### Language
192-
193-
* Languages: Add native & English name to language value.
194-
195-
#### Extensions
196-
197-
* Update typing extension to use meta keys properly; since the `name` attribute is no longer used.

dist/js/jquery.keyboard.min.js

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

js/jquery.keyboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery UI Virtual Keyboard v1.25.0 *//*
1+
/*! jQuery UI Virtual Keyboard v1.25.1 *//*
22
33
Author: Jeremy Satterfield
44
Modified: Rob Garrison (Mottie on github)
@@ -40,7 +40,7 @@ Setup/Usage:
4040
var $keyboard = $.keyboard = function(el, options){
4141
var base = this, o;
4242

43-
base.version = '1.25.0';
43+
base.version = '1.25.1';
4444

4545
// Access to jQuery and DOM versions of element
4646
base.$el = $(el);

keyboard.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "keyboard",
33
"title": "Keyboard",
4-
"version": "1.25.0",
4+
"version": "1.25.1",
55
"description": "Virtual Keyboard using jQuery UI",
66
"author": {
77
"name": "Jeremy Satterfield",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "virtual-keyboard",
33
"title": "Keyboard",
44
"description": "Virtual Keyboard using jQuery UI",
5-
"version": "1.25.0",
5+
"version": "1.25.1",
66
"author": {
77
"name": "Jeremy Satterfield",
88
"url": "https://github.com/jsatt"

0 commit comments

Comments
 (0)