gtk2keypress 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 447906817ead22f8fe9b85d64774153e7274c6ff
4
- data.tar.gz: bb370730860f3c445fe1b7ffe88044b57fa7de94
3
+ metadata.gz: a87eea2e8d277a98a2a966ad8b25591bb900aa7f
4
+ data.tar.gz: bd165894217d450e494d8cc022d73008fc1c15f1
5
5
  SHA512:
6
- metadata.gz: 74460e3d840b65fbb81c3229170c3b31b3923d7a9937de22605e9fc7f1859732e41bd352c07ac6d699df4ce7e7d19404fe65c691e60f7839927abf26ec4f87b1
7
- data.tar.gz: b2f44490f3a43151ca1e6476af7c9c20a12ce2c4a07e9dd944dc164fcb353bc4086da947fc006ba978f69a0f89a0c42098c108caf040518be7367a2b817f6d36
6
+ metadata.gz: 0be313cfdd11857e733267dfb86a0712a5a9a216ff5f07fc5feac1f40f4a8a77daa68e6f085ee48890a51fd7c70ae08ae3e5c71c17a8cd09685162d9547eb187
7
+ data.tar.gz: b14d1c39a5f6f41b2c8a915503db23affd684043e11257fdc1e7528932d1802de01ddc77b929f00f78bd03b318520fafcf7cd72212a40589eba3b499b07b10e4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -8,7 +8,7 @@
8
8
 
9
9
  class Gtk2KeyPress
10
10
 
11
- def initialize(parent)
11
+ def initialize(parent, external=nil)
12
12
 
13
13
  parent.add_events(Gdk::Event::KEY_PRESS)
14
14
  last_keydown, last_keyup = '', ''
@@ -28,7 +28,9 @@ class Gtk2KeyPress
28
28
  end
29
29
 
30
30
  on_keypress(e)
31
+ external.on_keypress if external and external.respond_to? :on_keypress
31
32
  on_keydown(e)
33
+ external.on_keydown if external and external.respond_to? :on_keydown
32
34
 
33
35
  end
34
36
 
@@ -51,6 +53,7 @@ class Gtk2KeyPress
51
53
  end
52
54
 
53
55
  on_keyup(e)
56
+ external.on_keyup if external and external.respond_to? :on_keyup
54
57
  end
55
58
 
56
59
  last_keyup = e.keyval
@@ -69,5 +72,4 @@ class Gtk2KeyPress
69
72
 
70
73
  def on_keyup(e)
71
74
  end
72
- end
73
-
75
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2keypress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file