da_funk 3.18.0 → 3.18.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
  SHA256:
3
- metadata.gz: ceca3b8c7dbab19c356f90ae7f5f7dd9b2e6a3e5a29b5b535c614f334462292c
4
- data.tar.gz: 21967381e026160e693bfaf3eabcbd03873dfb857e55a8e3a00a93efcdda2338
3
+ metadata.gz: ce9673172b8ee5806e0b9e798fc82ecb6c485f4d17ce42b9da09dd8819078376
4
+ data.tar.gz: 8fe7ccbeaa715ac1e3753755c442a346e9f10dc99c43db72eb781691f88a595c
5
5
  SHA512:
6
- metadata.gz: 201cc983eef4738eeeb3c27421bc1667020111a5f5ef1c2352798558c0cf14962e6c736d897435b4000cf7163d4a2320b261785f24b2da8b03256045b24c305b
7
- data.tar.gz: 48503f11d53841c2d46cf95e08141bc20d10267fec052eaf6f1ba022b2eabd8e6d131d535ea066e915e0bfbf484c66f3ae5d4a5c58d1f697fb68ba65f94481aa
6
+ metadata.gz: 22e35877246d833aa5c459061a78cc31528342a3e3c508790d1b5143d722b84dc5f516a600a449196ad931a8e561d0376cd852b0a75a010f286e6d3e77b5fc8c
7
+ data.tar.gz: 51f09c79c484aba8fd8d788763195a11c892f025b5857106c60707186e15f1277f6e302f05eca10a971fddd774dc8c25d731877747d9c809d27923a1bc5880df
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.18.0)
4
+ da_funk (3.18.1)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # DaFunk
2
2
 
3
+ ### 3.18.1 - 2020-05-20
4
+
5
+ - Fix issue on DaFunk::Helper#menu_image_touchscreen_or_keyboard it was not checking for special keys
6
+
3
7
  ### 3.18.0 - 2020-04-03
4
8
 
5
9
  - Added enable_txt_ui parameter on the following methods
@@ -184,15 +184,21 @@ module DaFunk
184
184
  return nil if menu_itens.empty?
185
185
 
186
186
  Device::Display.print_bitmap(path)
187
-
188
187
  timeout = options[:timeout] || Device::IO.timeout
189
- options[:special_keys] = [Device::IO::CANCEL]
188
+
189
+ if options.include?(:special_keys)
190
+ options[:special_keys] += options[:special_keys]
191
+ else
192
+ options[:special_keys] = [Device::IO::CANCEL]
193
+ end
190
194
 
191
195
  event, key = wait_touchscreen_or_keyboard_event(menu_itens, timeout, options)
192
196
 
193
197
  if event == :keyboard
194
198
  if key == Device::IO::CANCEL
195
199
  options[:default]
200
+ elsif options[:special_keys].include?(key)
201
+ key
196
202
  else
197
203
  index = key.to_i-1 == -1 ? 0 : key.to_i-1
198
204
  menu_itens.keys[index]
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.18.0"
2
+ VERSION="3.18.1"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_funk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.18.0
4
+ version: 3.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Scalone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake