Sha256: 374fdac6274357b80718a142e49aba0558c92d46f104b6936d808bae4d20c434

Contents?: true

Size: 506 Bytes

Versions: 12

Compression:

Stored size: 506 Bytes

Contents

# -*- coding: utf-8 -*-


require 'xot/const_symbol_accessor'
require 'reflex/ext'


module Reflex


  class FocusEvent < Event

    alias get_action action

    const_symbol_reader :action, **{
      none:  ACTION_NONE,
      focus: FOCUS,
      blur:  BLUR
    }

    def focus?()
      get_action == FOCUS
    end

    def blur?()
      get_action == BLUR
    end

    def inspect()
      "#<Reflex::FocusEvent action:#{action} current:#{current} last:#{last}>"
    end

  end# FocusEvent


end# Reflex

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reflexion-0.1.35 lib/reflex/focus_event.rb
reflexion-0.1.34 lib/reflex/focus_event.rb
reflexion-0.1.33 lib/reflex/focus_event.rb
reflexion-0.1.32 lib/reflex/focus_event.rb
reflexion-0.1.31 lib/reflex/focus_event.rb
reflexion-0.1.30 lib/reflex/focus_event.rb
reflexion-0.1.29 lib/reflex/focus_event.rb
reflexion-0.1.28 lib/reflex/focus_event.rb
reflexion-0.1.27 lib/reflex/focus_event.rb
reflexion-0.1.26 lib/reflex/focus_event.rb
reflexion-0.1.25 lib/reflex/focus_event.rb
reflexion-0.1.24 lib/reflex/focus_event.rb