yepkeynav-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGUxODY1YmViNmRhNGJhM2JhNjAzZTBjMjNlNjQxODMwOTVlNjg3YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDY0N2IyZTk2ZjQxMGU1YWIwMTUwNjJkYzg0NGQwNTNjNWZmMzZhNg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTAwNTBkOTNkYjhiZGE4NzBlMmMxMzFiNTIyNjMyNjcxMDg3YzBmZDc5NTM1
|
10
|
+
YjZjNDA2M2UwMWVmZTA3NjdmM2ExMTE5YjcyYzQ1ODgwMzg4ZGMwZGEzYjFh
|
11
|
+
OGY5OWFmYjZiNjkzODhlYjE3OTI4MmVkYzVkZjgwZDM2NzVmYjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmEwNWEyMWZhMTlhMmNhYWU2OTUyYjI4YzlhODVhNGRmZDRjODQ1MWQ2ODJi
|
14
|
+
NDMzZTE1NDE5YTMzZTQ5MGZhZTI4YTlmMzUwMzM4OGUwYWM5NDVhODU2ODlj
|
15
|
+
N2E2MjM1YmU2ZjQ4ODNlOGIyZjYzNTc3NGViZmRlZTA4MTU0ZTQ=
|
data/README.rdoc
CHANGED
@@ -4,3 +4,26 @@ This project rocks and uses MIT-LICENSE.
|
|
4
4
|
|
5
5
|
== Usage
|
6
6
|
|
7
|
+
Add to your application.js
|
8
|
+
|
9
|
+
//= require yepKeyNav
|
10
|
+
|
11
|
+
== More Info
|
12
|
+
|
13
|
+
https://github.com/josecoelho/yepKeyNav
|
14
|
+
|
15
|
+
|
16
|
+
== Development
|
17
|
+
|
18
|
+
Code from https://github.com/josecoelho/yepKeyNav should be updated after checkout
|
19
|
+
|
20
|
+
git submodule init
|
21
|
+
git submodule update
|
22
|
+
|
23
|
+
== Publishing a new version
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
== TODO
|
28
|
+
|
29
|
+
Tests on dummy application
|
@@ -25,17 +25,22 @@
|
|
25
25
|
next: "j",
|
26
26
|
prev: "k",
|
27
27
|
toggleSelect: "x"
|
28
|
-
}
|
28
|
+
},
|
29
|
+
disableInInput: true //by default, keyboard shortcuts are disabled on input items
|
29
30
|
},
|
30
31
|
|
31
32
|
_create: function () {
|
32
33
|
console.debug("yepKeyNav: init for "+$(this.element).attr('class'))
|
33
34
|
var self = this; //used to maintain class context on events
|
34
35
|
|
36
|
+
var shortcutOptions = {
|
37
|
+
disable_in_input: self.options.disableInInput
|
38
|
+
}
|
39
|
+
|
35
40
|
|
36
|
-
shortcut.add(self.options.shortcuts.toggleSelect, $.proxy(self.toggleSelectByEvent,self));
|
37
|
-
shortcut.add(self.options.shortcuts.next, $.proxy(self.next,self));
|
38
|
-
shortcut.add(self.options.shortcuts.prev, $.proxy(self.prev,self));
|
41
|
+
shortcut.add(self.options.shortcuts.toggleSelect, $.proxy(self.toggleSelectByEvent,self),shortcutOptions);
|
42
|
+
shortcut.add(self.options.shortcuts.next, $.proxy(self.next,self),shortcutOptions);
|
43
|
+
shortcut.add(self.options.shortcuts.prev, $.proxy(self.prev,self),shortcutOptions);
|
39
44
|
|
40
45
|
$($(this.element)).on('click',"."+self.options.classes.navigable, $.proxy(self.currentByEvent,self));
|
41
46
|
$($(this.element)).on('click',"."+self.options.classes.itemSelector,$.proxy(self.toggleSelectByEvent,self));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yepkeynav-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- José Coelho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|