[wp-trac] [WordPress Trac] #38667: Allow tab characters in custom CSS input

WordPress Trac noreply at wordpress.org
Sat Nov 5 17:12:19 UTC 2016


#38667: Allow tab characters in custom CSS input
----------------------------+--------------------------
 Reporter:  helen           |       Owner:  westonruter
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  4.7
Component:  Customize       |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript
----------------------------+--------------------------

Comment (by afercia):

 @westonruter yep I guess a short text in the Help explaining users they
 can indent code using the Tab key and use Escape to tab-out would be
 useful.

 Couple things:
 - when pressing Escape twice, the section closes (I guess this is the
 expected behaviour) but then noticed when you reopen the section again,
 entering tab characters doesn't work any more the first time you use the
 textarea. Starts working again after you blur the textarea and then focus
 it again
 - I was staring at the comment used in the placeholder and trying to use
 the keyboard to select/cancel what initially appeared to me being text...
 was wondering why the arrow keys weren't working at all. Maybe it's just
 me being a bit slow :) Since it's formatted like an inline comment `/* */`
 it looks like actual code that can be selected. Maybe potentially
 confusing for users, I'd consider to remove the `/* */`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38667#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list