Sha256: 0d8d89b2c841903ed84997cc40ab61768f71c5f381ddc228aa2462b7880f480c
Contents?: true
Size: 588 Bytes
Versions: 12
Compression:
Stored size: 588 Bytes
Contents
# -*- coding: utf-8 -*- require 'xot/const_symbol_accessor' require 'reflex/ext' module Reflex class KeyEvent < Event alias get_action action const_symbol_reader :action, **{ none: ACTION_NONE, down: DOWN, up: UP } def down?() get_action == DOWN end def up?() get_action == UP end def repeat?() repeat >= 1 end def inspect() "#<Reflex::KeyEvent action:#{action} chars:'#{chars}' code:#{code} mod:#{modifiers} repeat:#{repeat} captured?:#{captured?}>" end end# KeyEvent end# Reflex
Version data entries
12 entries across 12 versions & 1 rubygems