discourse/app/assets
Damon Aw a5e576adca UX Improvement: Autofocus the topic field on edit
- After clicking on the pencil icon to edit a topic, the focus is not set on the input.
- This leads to cases where using keyboard shorcuts (e.g. cmd + left) leads to navigation instead.
- Searching around online, it seems the cleanest way to add a text-field that autofocuses is to create a component.
- I followed the [cookbook](http://emberjs.com/guides/cookbook/user_interface_and_interaction/focusing_a_textfield_after_its_been_inserted/) and did the most naive implementation.
- This focuses the text-field but at the start of the input. Setting selectionStart and selectionEnd solves this problem, but does not work on IE 8 and below.
2014-10-14 23:31:01 -04:00
..
fonts FEATURE: upgrade font awesome to head 2014-07-03 17:58:12 +10:00
images move editor spinner css to shared (base) css 2014-10-11 04:08:16 -07:00
javascripts UX Improvement: Autofocus the topic field on edit 2014-10-14 23:31:01 -04:00
stylesheets Revert "UX: On mobile add a max width for really long forum names" 2014-10-14 17:27:58 -04:00