Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

share|improve this question
up vote 6 down vote accepted

Enable the "Unicode Hex Input" input method from System Preferences > Language & Text > Input Sources and then type Option 0009.

share|improve this answer
Where do you enable this? – patrix Nov 16 '11 at 4:27
System Preferences / Language & Text / Input Sources. – Josh Lee Nov 16 '11 at 4:44
Before anyone changes their main keyboard layout to Unicode Hex Input, note that option-arrows and option-delete don't work work with it by default, it is based on the U.S. keyboard layout and OS X doesn't come with versions of it for other keyboard layouts, and it removes dead keys like option-U for inserting umlauts. – user495470 Sep 5 '13 at 10:10

Press Cmd-Alt-T to bring up "Special Characters..." in the Edit menu.

Search for "tab" and click Insert. You're looking for the one named "Character tabulation"

The website may not display it correctly,

but it will indent code.
share|improve this answer

You can use control-option-tab.

In other applications you can use option-tab, but in Safari tab and option-tab are used to select elements in web views.

share|improve this answer
That's perfect! Thanks. – entropid Mar 16 '15 at 16:42
This should be the correct answer. Its Safari only though (doesn't work on Chrome in OS X). – Gustavo Bezerra Jan 9 at 1:53

I usually wind up typing a tab in TextEdit or Stickies and copy-and-pasting it in Safari.

share|improve this answer
I use TextExpander. – Nathan Greenstein Feb 24 '11 at 20:03

The Wikipedia article titled Control key reports the following text:

Under Mac OS X, the Control key allows the use of Emacs-style key combinations in most text entry fields. For example, Ctrl-A moves the caret to the start of the paragraph, Ctrl-L vertically centers the current line in the editing field, Ctrl-K cuts text to the end of the line to a kill ring separate from the normal clipboard, etc.

The table before that note reports that Ctrl-Q works as "Literal insert." I tried entering Ctrl-Q, Ctrl-I in Safari 5.0.4, and I get a tab in the text entry. It doesn't work on SE sites, as those combinations are used, respectively, to start a quoted text and emphasized text.

It doesn't seem to work on Safari 5.1, or Firefox 4.

share|improve this answer

Your Answer


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.