Sha256: 10173537308ddd152292188c697b14e3e55ebc4561c7c403b6b84f56572a8ced

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

require 'vedeu/repositories/repository'
require 'vedeu/input/mapper'
require 'vedeu/input/keys'
require 'vedeu/input/key'
require 'vedeu/input/input'
require 'vedeu/input/keymap'

module Vedeu

  extend self

  def keymaps
    @_keymaps ||= Vedeu::Repository.new(Vedeu::Keymap)
  end

  def_delegators Vedeu::Keymap, :keymap
  def_delegators Vedeu::Keymap, :keypress

  Vedeu.keymap('_system_') do |keymap|
    Vedeu::Configuration.system_keys.each do |label, keypress|
      keymap.key(keypress) { Vedeu.trigger(("_" + label.to_s + "_").to_sym) }
    end
  end

  Vedeu.keymap('_global_') do

  end

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.3.1 lib/vedeu/input/all.rb
vedeu-0.3.0 lib/vedeu/input/all.rb