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.6.0 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.5.9 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.5.4 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.5.3 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.5.1 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.4.8 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.4.7 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.4.6 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.4.3 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.4.2 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.3.9 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.3.6 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.3.5 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.3.3 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.3.2 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.3.1 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.3.0 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.1.8 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.1.7 vendor/assets/application/examples/shortcut.rb
atome-0.5.7.1.0 vendor/assets/application/examples/shortcut.rb