Peder Johnson Peder Johnson - 9 months ago 40
CSS Question

Change default tab function on a website

For every web browser, pressing the

key cycles through selecting the various input elements / links etc. on the page. I want to make it so that when a user presses
in a
, it creates a "tab" character like in a text document. How can that be done?


This has already been answered, for example here. Basically you catch the keypress, prevent default behaviour and indent you textarea instead. For an example, please check out the provided link.