lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.3.0 vs lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.4.0

- old
+ new

@@ -7,11 +7,11 @@ module Executors # Control Window or Workspaces by executing wctrl class SendkeyExecutor < Executor def config_param_types { - 'device_path': String + 'device_name': String } end # execute sendkey command # @param event [Event] @@ -37,11 +37,11 @@ private def keyboard @keyboard ||= begin - device = Sendkey::Device.new(path: config_params(:device_path)) - Sendkey::Keyboard.new(device: device) + name_pattren = config_params(:device_name) + Sendkey::Keyboard.new(name_pattern: name_pattren) end end def search_param(event) index = Config::Index.new([*event.record.index.keys, :sendkey])