Sha256: 586bda28928ba7ff22d68e7fd515b83c4f8e9b06e1952e0dee20c8628f4c3a7d
Contents?: true
Size: 495 Bytes
Versions: 5
Compression:
Stored size: 495 Bytes
Contents
# -*- coding: utf-8 -*- module Spacy class KeyMap def initialize () @map = {} end def add (key, &proc) @map[key] = proc end def remove (key) @map.delete key end def key_down (key, repeat) proc = @map[key] proc.call key if proc end def key_up (key) end def key_press (chars) end def [] (key) @map[key] end def []= (key, proc) @map[key] = proc end end# KeyMap end # Spacy
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
spacy-0.1.9 | lib/spacy/keymap.rb |
spacy-0.1.8 | lib/spacy/keymap.rb |
spacy-0.1.6 | lib/spacy/keymap.rb |
spacy-0.1.5 | lib/spacy/keymap.rb |
spacy-0.1.4 | lib/spacy/keymap.rb |