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/

Upvotes: 3

Views: 711

Answers (1)

a user
a user

Reputation: 24084

Add

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

to allow the brwoser to handle tab key

Upvotes: 6

Related Questions