[英]Ace editor change field focus on tab key
I have some textfields and field with Ace editor. 我有一些带有Ace编辑器的文本字段和字段。 When I change focus by tab key editor types tab inside his area but I want to set focus on the next field.
当我通过其区域内的tab键编辑器类型选项卡更改焦点时,我想将焦点设置在下一个字段上。
For example: 例如:
<input type="text"/>
<div class="panel-body">
<div id="editor"></div>
</div>
<input type="text"/>
Add 加
editor.commands.bindKey("Tab", null)
editor.commands.bindKey("Shift-Tab", null)
to allow the brwoser to handle tab key 允许brwoser处理tab键
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.