Sha256: 67d2b6b6e398651b39543e32c2a5a2628d9c7a3683ebc0d99021581dea9c63c9

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

Shoes.app do
  s = stack do
    title 'come on press some keys'
  end

  keypress do |key|
    s.append { para 'You pressed ' + key.to_s }
    p key
  end
  keyrelease do |key|
    s.append { para 'You released ' + key.to_s }
    p key
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.rc1 samples/simple_keypress.rb