Sha256: b03e04f6488d7c7b7791a824f64abd39b82ef5f8c06dae5ad591a2263fe3d08c
Contents?: true
Size: 592 Bytes
Versions: 8
Compression:
Stored size: 592 Bytes
Contents
# -*- coding: utf-8 -*- require 'xot/const_symbol_accessor' require 'reflex/ext' module Reflex class KeyEvent < Event alias get_type type const_symbol_reader :type, { none: TYPE_NONE, down: TYPE_DOWN, up: TYPE_UP } def down? () get_type == TYPE_DOWN end def up? () get_type == TYPE_UP end def repeat? () repeat >= 1 end def inspect () "#<Reflex::KeyEvent type:#{type} chars:'#{chars}' code:#{code} mod:#{modifiers} repeat:#{repeat} capture?:#{capture?}>" end end# KeyEvent end# Reflex
Version data entries
8 entries across 8 versions & 1 rubygems