【问题标题】:Ace editor change field focus on tab keyAce 编辑器更改字段焦点在 Tab 键上
【发布时间】:2016-02-20 06:48:56
【问题描述】:

我有一些带有 Ace 编辑器的文本字段和字段。 当我通过 tab 键编辑器在他的区域内键入 tab 更改焦点但我想将焦点设置在下一个字段上时。

例如:

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

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

【问题讨论】:

  • 因此,您希望直接关注下一个输入文本。不在编辑器中?

标签: javascript html css ace-editor


【解决方案1】:

添加

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

允许浏览器处理tab键

【讨论】:

    猜你喜欢
    • 2011-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-30
    • 2014-03-20
    • 2013-10-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多