Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I write a tab character in a text field shown by safari in an HTML page?
I tried using the tab key with the modifier keys, but I didn't get Safari to write a tab character.

Is it possible to do it? If it is possible, how can I do it?

share|improve this question

3 Answers 3

up vote 2 down vote accepted

You can just press ControlOptionTab to insert a tab in the text field you're currently editing.

share|improve this answer

Easy/dumb fix:

  1. Open a text editor
  2. Press TAB
  3. Select and copy the tab character
  4. Paste into text field
share|improve this answer

If the text field you're working with doesn't have any JavaScript features to assist with the formatting of text (eg. the search box or the comment box here on Super User) you can type Control-Q and then Control-I. However, extra whitespace is ignored unless you're using <pre> or <code> tags.

There is a similar question here on Super User (Typing the tab character in browser text boxes) that addresses another way to do this with Firefox.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.