Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#15631 new enhancement

Custom fields auto-focus

Reported by: jane Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.1
Component: Editor Keywords: has-patch
Focuses: ui Cc:


When you are on the post editor (page editor, whatever), if you want to create a new custom field and click on Create New, it should auto-focus on the text input field that appears.

Attachments (1)

15631.diff (1.1 KB) - added by batmoo 4 years ago.

Download all attachments as: .zip

Change History (3)

@batmoo4 years ago

comment:1 @batmoo4 years ago

  • Cc batmoo@… added
  • Keywords has-patch added

Moved inline javascript to post.dev.js and set the field to auto-focus.

Should the input be reverted back to the select once a new custom field is added? It just seems weird (possibly confusing) because of the "cancel" link.

comment:2 @sabreuse2 years ago

  • Component changed from UI to Editor
  • Keywords ui-focus added
Note: See TracTickets for help on using tickets.