Sha256: f2c4a2bc238c37632cb4d6d4d123161011fd9aeb8a298a61d3e7ca3e1eb5e2b7

Contents?: true

Size: 771 Bytes

Versions: 71

Compression:

Stored size: 771 Bytes

Contents

# frozen_string_literal: true


box({id: :my_box})
circle({id: :my_circle, left: 333})
box({id: :red_box, left: 666, color: :red})



shortcut(key: :b,  affect: :all) do |key, object_id|
  puts "Key #{key} press on #{object_id}"
end
text({data: "Key 'b'  on :all", top: 0})

shortcut(key: :e, option: :meta,affect: [:my_circle, :red_box]) do |key, object_id|
  puts "Key #{key}  press on #{object_id}"
end
text({data: "Key 'e' with Meta  on [:my_circle, :red_box]", top: 30, left: 0, position: :absolute})


shortcut(key: :j, option: :ctrl, affect: :all, exclude: [:my_circle, :my_box]) do |key, object_id|
  puts "Key #{key} with Ctrl press on #{object_id}"
end
text({data: "Key 'j' with Ctrl  on :all but [:my_circle, :my_box]", top: 50,left: 0, position: :absolute})

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
atome-0.5.7.0.7 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.0.5 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.0.4 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.0.3 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.0.2 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.8.7 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.8.6 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.8.5 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.8.3 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.7.8 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.7.7 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.7.6 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.7.5 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.7.4 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.7.3 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.6.9 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.6.7 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.6.5 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.6.1 vendor/assets/application/examples/shortcut.rb
atome-0.5.6.6.0 vendor/assets/application/examples/shortcut.rb