Sha256: 1f7f5b89d83acd15b59ac40215a567bacb54e0c0b7e4f3f1142aeb81e1bd9a0b

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

require 'vedeu/repositories/all'
require 'vedeu/input/mapper'
require 'vedeu/input/key'
require 'vedeu/input/input'
require 'vedeu/input/keymap'

module Vedeu

  # Define a keymap called '_system_' which will hold some vital keys needed by
  # Vedeu to run effectively.
  Vedeu::DSL::Keymap.keymap('_system_') do |keymap|
    Vedeu::Configuration.system_keys.each do |label, keypress|
      keymap.key(keypress) { Vedeu.trigger(("_#{label}_").to_sym) }
    end
  end

  # Define a keymap called '_global_' which will respond no matter which
  # interface is in focus.
  #
  # @note
  #   Initially, no keys are registered with the global keymap.
  Vedeu::DSL::Keymap.keymap('_global_') do
    # ...
  end

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.13 lib/vedeu/input/all.rb
vedeu-0.4.12 lib/vedeu/input/all.rb