V
V
VBKesha2013-12-19 14:58:33
Google Chrome
VBKesha, 2013-12-19 14:58:33

Is it possible to make the TAB button in textarea(Chrome) work exactly like TAB?

Is there any way to make the TAB button work exactly like issuing a tab character in textarea fields in Chrome, and not how to now move the focus further?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Sergey Melnikov, 2013-12-19
@mlnkv

you can, here is an example on jQuery, if you try, you will rewrite it on pure js

$(function(){

    $(document.body).on('keydown', 'textarea', function(e){
        if (e.keyCode == 9) e.preventDefault();
        /* do something */
    })

});

V
VBKesha, 2013-12-19
@VBKesha

Perhaps the question is a little incorrect, I want this behavior in the entire browser and not to make it on any page.

M
Mikhail Osher, 2013-12-19
@miraage

Read about userscripts [1] , [2] .
You need a userscript that will set this behavior on all pages.

C
callback, 2013-12-19
@callback

Use the code @mlnkv wrote to you as a userscript. For convenience, you can install the TamperMonkey extension - this is a user script manager.

V
Volodymyr S., 2013-12-19
@VYBGSS

Alt+09.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question