peer / mind

Decide together.
http://peermind.org
Other
58 stars 12 forks source link

When autofocusing, move the cursor to the end #126

Open mitar opened 8 years ago

mitar commented 8 years ago

When autofocusing a form, move the cursor to the end of the input box or editor. One can use:

editor.setSelectedRange(editor.getDocument().getLength() - 1)

See: https://github.com/basecamp/trix/issues/89