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.

The TAB button usually moves focus. Is there a way to enter TAB symbols into text fields of opened web pages?

For example here, on Stack Exchange?

Is it possible to enter the symbol from keyboard?

share|improve this question

3 Answers 3

Depending on your OS, open up a program like Notepad (Windows), and type a TAB. Highlight it, and copy it to the clipboard. Paste it into the text field.

As long as SuperUser doesn't edit it out (the application could if it wanted to), there is a tab character between the brackets below.

[Before Tab] [After Tab]

share|improve this answer
    
This site seems to convert tabs to 4 spaces. –  unor Sep 16 '12 at 14:29
    
Hmm, when I click "edit" on this answer, there is a tab character between the two markers, although it doesn't look that way. The "four space" thing is used for indenting code in SuperUser, mostly because Tabs in browsers are a pain in the rear. :) –  dangowans Sep 16 '12 at 14:33

The character reference for a tab would be 	 (see Wikipedia). It depends on the form and the server-side process what happens with this character, though. If character references are not resolved, it would simply display "	". If character references are resolved, it depends on how the submitted content will be displayed on the page (e.g. inside of the pre element it should be displayed by default; inside of other elements it should be converted to spaces by default; you could change that behavior with CSS, though)

Test with character reference: [before tab] [after tab] (check the HTML source)

share|improve this answer

I just found the solution after much searching, since the ASCII# for TAB is 9, in Windows you can just press ALT+009 (with the number pad). This should work on Mac too though I'm not sure about Linux. If you have a laptop it might be easier to use the AutoHotkey scripts below.

Here are two little AutoHotkey scripts that work for me from Windows:

#TAB::
  SendInput, {Alt Down}{Numpad0}{Numpad0}{Numpad9}{Alt Up}
Return

#TAB::
  Send, {ASC 009}
Return

Here they are mapped to Windows Key+TAB but you can map it to what ever you like.

[Before TAB] [After TAB]

Oh, it seems like SuperUser.com converts all blank space characters to single spaces. Well, it works in Gmail and other website forms. Hope this helps.

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.