Sha256: 6df8a8371cb0f7ae1c609f2ebacd70e411e0efccaa4635bb96e267dc6ba6ab2c
Contents?: true
Size: 525 Bytes
Versions: 7
Compression:
Stored size: 525 Bytes
Contents
# -*- coding: utf-8 -*- require 'reflex/ext' module Reflex class KeyEvent def type () TYPE2SYM[get_type] || :none end def down? () get_type == TYPE_DOWN end def up? () get_type == TYPE_UP end def inspect () "#<Reflex::KeyEvent type:#{type} chars:'#{chars}' code:#{code} mod:#{modifiers} repeat:#{repeat} capture?:#{capture?}>" end private TYPE2SYM = { TYPE_DOWN => :down, TYPE_UP => :up, } end# KeyEvent end# Reflex
Version data entries
7 entries across 7 versions & 1 rubygems