exe/fusuma-sendkey in fusuma-plugin-sendkey-0.11.0 vs exe/fusuma-sendkey in fusuma-plugin-sendkey-0.11.1
- old
+ new
@@ -22,11 +22,11 @@
opt.parse!(ARGV)
device_name = Fusuma::Config.instance.fetch_config_params(
:device_name,
Fusuma::Config::Index.new([:plugin, :executors, :sendkey_executor])
-).fetch(:device_name, nil)
+).fetch(:device_name, 'keyboard|Keyboard|KEYBOARD')
if option[:list]
puts Fusuma::Plugin::Sendkey::Keyboard.new(name_pattern: device_name).search_codes
return
end
@@ -46,10 +46,9 @@
end
# remove [ and ] from args
params = args.delete('[]').split(',').map(&:strip)
-require 'debug'; debugger
keyboard = Fusuma::Plugin::Sendkey::Keyboard.new(name_pattern: device_name)
return unless keyboard.valid?(params)
if params.size == 1