lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.12.0 vs lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.13.0
- old
+ new
@@ -53,10 +53,13 @@
end
private
def keyboard
- @keyboard ||= Sendkey::Keyboard.new(name_pattern: @device_name)
+ @keyboard ||= begin
+ device = Sendkey::Keyboard.find_device(name_patterns: @device_name)
+ Sendkey::Keyboard.new(device: device)
+ end
end
def search_param(event)
index = Config::Index.new([*event.record.index.keys, :sendkey])
Config.search(index)