Sha256: 986909879418117587fde8df1c512cba6047324cac2d970d8727691ad5fdd5e2

Contents?: true

Size: 728 Bytes

Versions: 6

Compression:

Stored size: 728 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_s + "_").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

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.4.11 lib/vedeu/input/all.rb
vedeu-0.4.10 lib/vedeu/input/all.rb
vedeu-0.4.9 lib/vedeu/input/all.rb
vedeu-0.4.8 lib/vedeu/input/all.rb
vedeu-0.4.7 lib/vedeu/input/all.rb
vedeu-0.4.6 lib/vedeu/input/all.rb