lib/vedeu/dsl/keymap.rb in vedeu-0.6.7 vs lib/vedeu/dsl/keymap.rb in vedeu-0.6.8

- old
+ new

@@ -46,22 +46,22 @@ # # @param name [String] The name of the interface which this keymap relates # to. # @param block [Proc] # @raise [Vedeu::Error::InvalidSyntax] The required block was not given. - # @return [Vedeu::Keymap] + # @return [Vedeu::Input::Keymap] # @todo Try to remember why we need to pre-create the keymap in the # repository. def self.keymap(name, &block) - Vedeu::Keymap.new(name: name).store + Vedeu::Input::Keymap.new(name: name).store - Vedeu::Keymap.build(name: name, &block).store + Vedeu::Input::Keymap.build(name: name, &block).store end # Returns an instance of DSL::Keymap. # - # @param model [Vedeu::Keymap] + # @param model [Vedeu::Input::Keymap] # @param client [Object] # @return [Vedeu::DSL::Keymap] def initialize(model, client = nil) @model = model @client = client @@ -69,11 +69,11 @@ # Define keypress(es) to perform an action. # # @param value_or_values [Array<String>|Array<Symbol>|String|Symbol] # The key(s) pressed. Special keys can be found in - # {Vedeu::Input#specials}. When more than one key is defined, then the - # extras are treated as aliases. + # {Vedeu::Input::Input#specials}. When more than one key is + # defined, then the extras are treated as aliases. # @param block [Proc] The action to perform when this key is pressed. Can # be a method call or event triggered. # @raise [Vedeu::Error::InvalidSyntax] # When the required block is not given, the value_or_values parameter is # undefined, or when processing the collection, a member is undefined.