lib/termup/handler.rb in termup-2.0.0 vs lib/termup/handler.rb in termup-2.0.1

- old
+ new

@@ -28,12 +28,12 @@ def hit(key, *using) activate case key when Integer - app('System Events').key_code key, using && { :using => using } + app('System Events').processes[app_name].key_code key, using && { :using => using } when String - app('System Events').keystroke key, using && { :using => using } + app('System Events').processes[app_name].keystroke key, using && { :using => using } end end def terminal? app_name == 'Terminal'