Permalink
Browse files

Updating to jQuery 1.9 and keymasher 0.3

  • Loading branch information...
1 parent 9672630 commit d9675b722d1c7f0b63676ea75517baf2b4f9c84c @digitalBush committed Jan 17, 2013
Showing with 9 additions and 5 deletions.
  1. +1 −1 demo/index.html
  2. +4 −0 lib/jquery-1.9.0.min.js
  3. +1 −1 spec/SpecRunner.html
  4. +3 −3 spec/lib/jquery.keymasher.js
View
@@ -1,7 +1,7 @@
<html>
<head>
<title> jQuery Mask Test </title>
-<script src="../lib/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
+<script src="../lib/jquery-1.9.0.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../dist/jquery.maskedinput.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -34,7 +34,7 @@
</script>
<!-- include source files here... -->
- <script type="text/javascript" src="../lib/jquery-1.8.3.min.js"></script>
+ <script type="text/javascript" src="../lib/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="lib/jquery.keymasher.js"></script>
<script type="text/javascript" src="../dist/jquery.maskedinput.min.js"></script>
@@ -2,7 +2,7 @@
Key Masher plugin for jQuery (https://github.com/digitalBush/jquery.keymasher)
Copyright (c) 2010-2013 Josh Bush (digitalbush.com)
Licensed under the MIT license
- Version: 0.2
+ Version: 0.3
*/
(function($,undefined){
@@ -16,7 +16,7 @@
capslock:20,numlock:144,scrolllock:145,pageup:33,pagedown:34,end:35,home:36,backspace:8,
insert:45, 'delete':46,pause:19,esc:27,left:37,up:38,right:39,down:40,printscreen:44};
- $.each(keys,function(index,value){
+ $.each(keys.split(''),function(index,value){
var keyCode=value.charCodeAt(0),shift=shifted[index];
defs[value]={keyCode:keyCode,charCode:keyCode,shift:shift};
if(shift)
@@ -75,7 +75,7 @@
type:function(){
$.each(arguments,function(index,typing){
if($.type(typing)==='string')
- $.each(typing,function(index,value){queueStroke(value);});
+ $.each(typing.split(''),function(index,value){queueStroke(value);});
else
queueStroke(typing);
});

0 comments on commit d9675b7

Please sign in to comment.