<small id='lNTTW'></small><noframes id='lNTTW'>

  • <legend id='lNTTW'><style id='lNTTW'><dir id='lNTTW'><q id='lNTTW'></q></dir></style></legend>

  • <i id='lNTTW'><tr id='lNTTW'><dt id='lNTTW'><q id='lNTTW'><span id='lNTTW'><b id='lNTTW'><form id='lNTTW'><ins id='lNTTW'></ins><ul id='lNTTW'></ul><sub id='lNTTW'></sub></form><legend id='lNTTW'></legend><bdo id='lNTTW'><pre id='lNTTW'><center id='lNTTW'></center></pre></bdo></b><th id='lNTTW'></th></span></q></dt></tr></i><div id='lNTTW'><tfoot id='lNTTW'></tfoot><dl id='lNTTW'><fieldset id='lNTTW'></fieldset></dl></div>
  • <tfoot id='lNTTW'></tfoot>
        <bdo id='lNTTW'></bdo><ul id='lNTTW'></ul>

        mathquill latex-如何通过代码移动光标(选择)?

        mathquill latex- how can I move cursor (selection) by code?(mathquill latex-如何通过代码移动光标(选择)?)

              <bdo id='0PLKM'></bdo><ul id='0PLKM'></ul>
              <legend id='0PLKM'><style id='0PLKM'><dir id='0PLKM'><q id='0PLKM'></q></dir></style></legend><tfoot id='0PLKM'></tfoot>
                <i id='0PLKM'><tr id='0PLKM'><dt id='0PLKM'><q id='0PLKM'><span id='0PLKM'><b id='0PLKM'><form id='0PLKM'><ins id='0PLKM'></ins><ul id='0PLKM'></ul><sub id='0PLKM'></sub></form><legend id='0PLKM'></legend><bdo id='0PLKM'><pre id='0PLKM'><center id='0PLKM'></center></pre></bdo></b><th id='0PLKM'></th></span></q></dt></tr></i><div id='0PLKM'><tfoot id='0PLKM'></tfoot><dl id='0PLKM'><fieldset id='0PLKM'></fieldset></dl></div>

                <small id='0PLKM'></small><noframes id='0PLKM'>

                  <tbody id='0PLKM'></tbody>
                1. 本文介绍了mathquill latex-如何通过代码移动光标(选择)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 mathquill lib (mathquill git),我正在尝试制作键盘和退格键使用 html 按钮,但我不知道如何移动光标抛出公式.

                  I am using mathquill lib (mathquill git) and I am trying to make a keypad and a backspace using html buttons but I can't figure out how to move the cursor throw the formula.

                  谢谢,

                  推荐答案

                  您可以在 mathquill 中的 textarea 上触发自定义 keydown 事件以在公式中移动光标.

                  You can trigger custom keydown event on textarea within mathquill to move cursor through formula.

                  var customKeyDownEvent = $.Event('keydown');
                  
                  customKeyDownEvent.bubbles = true;
                  customKeyDownEvent.cancelable =true;
                  customKeyDownEvent.charCode = 37;  // 37 for left arrow key
                  customKeyDownEvent.keyCode = 37;   
                  customKeyDownEvent.which = 37;
                  
                  $('.mathquill-editable textarea').trigger(customKeyDownEvent);
                  

                  使用charCode/keyCode/分别是:

                  Use charCode / keyCode / which are:

                  1. 37 代表左箭头键
                  2. 39 代表右箭头键

                  谢谢.

                  这篇关于mathquill latex-如何通过代码移动光标(选择)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                    <bdo id='agBZN'></bdo><ul id='agBZN'></ul>
                      <tbody id='agBZN'></tbody>

                    • <tfoot id='agBZN'></tfoot>
                      <legend id='agBZN'><style id='agBZN'><dir id='agBZN'><q id='agBZN'></q></dir></style></legend>

                        <small id='agBZN'></small><noframes id='agBZN'>

                        <i id='agBZN'><tr id='agBZN'><dt id='agBZN'><q id='agBZN'><span id='agBZN'><b id='agBZN'><form id='agBZN'><ins id='agBZN'></ins><ul id='agBZN'></ul><sub id='agBZN'></sub></form><legend id='agBZN'></legend><bdo id='agBZN'><pre id='agBZN'><center id='agBZN'></center></pre></bdo></b><th id='agBZN'></th></span></q></dt></tr></i><div id='agBZN'><tfoot id='agBZN'></tfoot><dl id='agBZN'><fieldset id='agBZN'></fieldset></dl></div>