Sha256: 202609d1eebb9411aa7b474c3e8f31291c2e8b78a578aa275abce351a7ba7738

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 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

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.rc1 lib/shoes/key_event.rb