Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ace editor change field focus on tab key

I have some textfields and field with Ace editor. When I change focus by tab key editor types tab inside his area but I want to set focus on the next field.

For example:

<input type="text"/>
<div class="panel-body">
     <div id="editor"></div>
</div>
<input type="text"/>

http://jsfiddle.net/rY37e/34/

like image 526
Nikita Vladimir Petunin Avatar asked Nov 30 '25 02:11

Nikita Vladimir Petunin


1 Answers

Add

editor.commands.bindKey("Tab", null)
editor.commands.bindKey("Shift-Tab", null)

to allow the brwoser to handle tab key

like image 89
a user Avatar answered Dec 05 '25 07:12

a user



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!