Method: AuthorEngine::CodeEditor#update
- Defined in:
- lib/author_engine/views/code_editor.rb
#update ⇒ Object
94 95 96 97 98 99 100 101 |
# File 'lib/author_engine/views/code_editor.rb', line 94 def update super # @text_input.text+="\n" if Gosu.button_down?(Gosu::KbEnter) || Gosu.button_down?(Gosu::KbReturn) # FIXME @caret_pos = @text_input.caret_pos @highlighting.highlight(string: @text_input.text, text: @text) @cursor.update end |