lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.9.0 vs lib/fusuma/plugin/executors/sendkey_executor.rb in fusuma-plugin-sendkey-0.10.0
- old
+ new
@@ -57,10 +57,10 @@
# search keypress from config for keep modifiers when sendkey
# @param event [Event]
# @return [String]
def search_keypress(event)
# if fusuma_virtual_keyboard exists, don't have to keep modifiers
- return "" if keyboard.use_virtual_keyboard?
+ return "" if @device_name == "fusuma_virtual_keyboard"
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