Sha256: 60144be2f5f10fe619d14a713209ee81c1c032d0655f110d08a271a1ef0cc0ad

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true
class Shoes
  class KeyEvent
    def initialize(app, &blk)
      @app = app
      @gui = Shoes.backend_for self, &blk
    end

    attr_reader :app

    def remove
      @gui.remove
    end
  end

  class Keypress < KeyEvent; end
  class Keyrelease < KeyEvent; end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoes-core-4.0.0.pre12 lib/shoes/key_event.rb
shoes-core-4.0.0.pre11 lib/shoes/key_event.rb
shoes-core-4.0.0.pre10 lib/shoes/key_event.rb
shoes-core-4.0.0.pre9 lib/shoes/key_event.rb