Answer the question
In order to leave comments, you need to log in
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
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 */
})
});
Perhaps the question is a little incorrect, I want this behavior in the entire browser and not to make it on any page.
Read about userscripts [1] , [2] .
You need a userscript that will set this behavior on all pages.
Use the code @mlnkv wrote to you as a userscript. For convenience, you can install the TamperMonkey extension - this is a user script manager.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question