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