lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.6.1 vs lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.6.2

- old
+ new

@@ -32,14 +32,11 @@ # execute sendkey command # @param event [Event] # @return [nil] def _execute(event) - keyboard.type( - param: search_param(event), - keep: search_keypress(event) - ) + keyboard.type(param: search_param(event)) end # check executable # @param event [Event] # @return [TrueClass, FalseClass] @@ -59,18 +56,9 @@ end def search_param(event) index = Config::Index.new([*event.record.index.keys, :sendkey]) Config.search(index) - end - - # @param event [Event] - # @return [String] - def search_keypress(event) - keys = event.record.index.keys - keypress_index = keys.find_index { |k| k.symbol == :keypress } - code = keypress_index && keys[keypress_index + 1].symbol - code.to_s end end end end end