Skip to content

Commit

Permalink
Merge tag '0.4.2' into develop
Browse files Browse the repository at this point in the history
0.4.2
  • Loading branch information
the-darc committed Jul 21, 2015
2 parents f3b4f3c + e7b52dd commit 7b7c730
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 11 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<a name"0.4.2"></a>
### 0.4.2 (2015-07-21)


#### Bug Fixes

* **VKI_CONFIG:** exposes sizeAdj configuration (issue #13) ([37e5230f](https://github.com/the-darc/angular-virtual-keyboard/commit/37e5230f))
* **auto-close:** auto-close others VKIs when a new one is focused (issue #10) ([8bf63d74](https://github.com/the-darc/angular-virtual-keyboard/commit/8bf63d74))
* **focus:** keep input focus when keyboard buttons (like shift, alt, caps, and others..) are ([f3b4f3c0](https://github.com/the-darc/angular-virtual-keyboard/commit/f3b4f3c0))


<a name"0.4.1"></a>
### 0.4.1 (2015-05-11)

Expand Down
6 changes: 2 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"name": "angular-virtual-keyboard",
"version": "0.4.1",
"version": "0.4.2",
"homepage": "https://github.com/the-darc/angular-virtual-keyboard",
"authors": [
"the-darc <darc.tec@gmail.com>"
],
"author": "the-darc <darc.tec@gmail.com>",
"description": "An AngularJs Virtual Keyboard Interface based on GreyWyvern VKI",
"main": "release/angular-virtual-keyboard.min.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ gulp.task('build', function() {
' * <%= pkg.name %>',
' * <%= pkg.description %>',
' * @version v<%= pkg.version %>',
' * @author <%= pkg.authors[0]%>',
' * @author <%= pkg.author %>',
' * @link <%= pkg.homepage %>',
' * @license <%= pkg.license %>',
' */',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-virtual-keyboard",
"version": "0.4.1",
"version": "0.4.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
21 changes: 17 additions & 4 deletions release/angular-virtual-keyboard.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* angular-virtual-keyboard
* An AngularJs Virtual Keyboard Interface based on GreyWyvern VKI
* @version v0.4.1
* @version v0.4.2
* @author the-darc <darc.tec@gmail.com>
* @link https://github.com/the-darc/angular-virtual-keyboard
* @license MIT
Expand Down Expand Up @@ -79,7 +79,7 @@ var VKI = function(customConfig, layout, deadKeys, keyInputCallback) {
this.VKI_kts = this.VKI_kt = config.kt || 'US International'; // Default keyboard layout
this.VKI_langAdapt = !config.kt; // Use lang attribute of input to select keyboard (Will be used if no keyboard layout was defined in custom config)
this.VKI_size = config.size >=1 && config.size <= 5 ? config.size : 3; // Default keyboard size (1-5)
this.VKI_sizeAdj = true; // Allow user to adjust keyboard size
this.VKI_sizeAdj = config.sizeAdj === false ? false : true; // Allow user to adjust keyboard size
this.VKI_clearPasswords = false; // Clear password fields on focus
this.VKI_imageURI = config.imageURI !== undefined ? config.imageURI : ""; // If empty string, use imageless mode
this.VKI_clickless = 0; // 0 = disabled, > 0 = delay in ms
Expand Down Expand Up @@ -368,6 +368,7 @@ var VKI = function(customConfig, layout, deadKeys, keyInputCallback) {
VKI_addListener(span, 'click', function() {
kbNumpad.style.display = (!kbNumpad.style.display) ? "none" : "";
self.VKI_position(true);
self.VKI_target.focus();
}, false);
VKI_mouseEvents(span);
th.appendChild(span);
Expand All @@ -386,6 +387,7 @@ var VKI = function(customConfig, layout, deadKeys, keyInputCallback) {
VKI_addListener(small, 'click', function() {
--self.VKI_size;
self.VKI_kbsize();
self.VKI_target.focus();
}, false);
VKI_mouseEvents(small);
small.appendChild(document.createTextNode(this.VKI_isIElt8 ? "\u2193" : "\u21d3"));
Expand All @@ -395,6 +397,7 @@ var VKI = function(customConfig, layout, deadKeys, keyInputCallback) {
VKI_addListener(big, 'click', function() {
++self.VKI_size;
self.VKI_kbsize();
self.VKI_target.focus();
}, false);
VKI_mouseEvents(big);
big.appendChild(document.createTextNode(this.VKI_isIElt8 ? "\u2191" : "\u21d1"));
Expand Down Expand Up @@ -689,17 +692,25 @@ var VKI = function(customConfig, layout, deadKeys, keyInputCallback) {
case "Alt":
case "AltGr":
if (this.VKI_altgr) className.push("pressed");
self.VKI_target.focus();
break;
case "AltLk":
if (this.VKI_altgrlock) className.push("pressed");
self.VKI_target.focus();
break;
case "Shift":
if (this.VKI_shift) className.push("pressed");
self.VKI_target.focus();
break;
case "Caps":
if (this.VKI_shiftlock) className.push("pressed");
self.VKI_target.focus();
break;
case "Tab": case "Enter": case "Bksp": break;
case "Tab":
case "Bksp":
self.VKI_target.focus();
case "Enter":
break;
default:
if (type) {
tds[y].removeChild(tds[y].firstChild);
Expand Down Expand Up @@ -1050,7 +1061,8 @@ angular.module('angular-virtual-keyboard', [])
'10': 'Decrease keyboard size',
'11': 'Increase keyboard size'
},
relative: true
relative: true,
sizeAdj: true
})
.service('ngVirtualKeyboardService', ['VKI_CONFIG', function(VKI_CONFIG) {
/*globals VKI */
Expand All @@ -1061,6 +1073,7 @@ angular.module('angular-virtual-keyboard', [])
config.kt = config.kt || VKI_CONFIG.kt;
config.relative = config.relative === false ? false : VKI_CONFIG.relative;
config.keyCenter = config.keyCenter || VKI_CONFIG.keyCenter;
config.sizeAdj = config.sizeAdj === false ? false : VKI_CONFIG.sizeAdj;

var vki = new VKI(config, VKI_CONFIG.layout, VKI_CONFIG.deadkey, inputCallback);
vki.attachVki(element);
Expand Down
2 changes: 1 addition & 1 deletion release/angular-virtual-keyboard.min.js

Large diffs are not rendered by default.

0 comments on commit 7b7c730

Please sign in to comment.