lib/vedeu/editor/editor.rb in vedeu-0.8.16 vs lib/vedeu/editor/editor.rb in vedeu-0.8.17
- old
+ new
@@ -70,35 +70,20 @@
# @!attribute [r] input
# @return [Symbol|String]
attr_reader :input
# @!attribute [r] name
- # @return [String|Symbol]
+ # @macro return_name
attr_reader :name
private
- # Return the document by name from the documents repository.
- #
- # @return [Vedeu::Editor::Document]
+ # @macro document_by_name
def document
@document ||= Vedeu.documents.by_name(name)
end
end # Editor
end # Editor
-
- # :nocov:
-
- # See {file:docs/events/system.md#\_editor_}
- Vedeu.bind(:_editor_) do |key|
- Vedeu.timer('Executing editor keypress') do
- Vedeu.trigger(:key, key)
-
- Vedeu::Editor::Editor.keypress(name: Vedeu.focus, input: key)
- end
- end
-
- # :nocov:
end # Vedeu