Module Typing
In: lib/typing.rb
Typer Key Typing dot/f_10.png

The Typing module keeps track of Keys that can be typed, and a Typer to type them.

Classes and Modules

Class Typing::Key
Class Typing::Typer

Constants

KEYS = [ ENTER = Key.new({ :name => 'Return', :offset => [0, 1], :tokens => ['enter', 'return']
TAB = Key.new({ :name => 'Tab', :offset => [1, 0], :tokens => ['tab'], }), UP = Key.new({ :name => 'Up', :offset => [0, 1], :type => Key::DIRECTION, :tokens => ['up']
DOWN = Key.new({ :name => 'Down', :offset => [0, -1], :type => Key::DIRECTION, :tokens => ['down']
LEFT = Key.new({ :name => 'Left', :offset => [-1, 0], :type => Key::DIRECTION, :tokens => ['left']
RIGHT = Key.new({ :name => 'Right', :offset => [1, 0], :type => Key::DIRECTION, :tokens => ['right']
BACKSPACE = Key.new({ :name => 'BackSpace', :tokens => ['backspace', 'bs'], }), DELETE = Key.new({ :name => 'Delete', :tokens => ['delete', 'del'], }), SHIFT = Key.new({ :name => 'Shift_L', :state => Key::UP, :tokens => ['shift', 's'], }), ALT = Key.new({ :name => 'Alt_L', :state => Key::UP, :tokens => ['alt', 'a'], }), CONTROL = Key.new({ :name => 'Control_L', :state => Key::UP, :tokens => ['control', 'ctrl', 'c'], }), META = Key.new({ :name => 'Meta_L', :state => Key::UP, :tokens => ['meta', 'm'], }), HOME = Key.new({ :name => 'Home', :tokens => ['home'], }), END_KEY = Key.new({ :name => 'End', :tokens => ['end'], }), CURSOR = Key.new({ :name => 'Cursor', :tokens => ['cursor','|'], }), SNIPPIT = Key.new({ :name => 'Snippit', :command => proc {|typer| typer.snippit(typer.xsel)}, :tokens => ['paste'], }), SLEEP = Key.new({ :name => 'Sleep', :command => proc {sleep(1);

[Validate]