At.js icon indicating copy to clipboard operation
At.js copied to clipboard

Setting text apply is different position.

Open yu-sungho opened this issue 10 years ago • 4 comments

example : http://ichord.github.io/At.js/ -> ContentEditable mode

test :

  1. first line last position : typing the :s and cancel (ESC key)
  2. second line : typing the :s .
  3. apply the first line last position.

I want to second line apply the :s but apply the first line last position.

Thankyou.

yu-sungho avatar Jul 16 '15 14:07 yu-sungho

Any solutions?

cesiya23 avatar Apr 07 '17 04:04 cesiya23

Any solutions?

sakervista avatar Aug 25 '17 10:08 sakervista

Hi,

Im having the same problem when pressing Enter.

I think the problem is in App.prototype.onKeyup

By having placeholder $.noop(), case KEY_CODE.ENTER does not call this.dispatch(e); and so never calls catchQuery

I replaced line 298 to:

      case KEY_CODE.DOWN:
      case KEY_CODE.UP:
      case KEY_CODE.CTRL:
        break;
      case KEY_CODE.ENTER:
        this.dispatch(e);
        break;

and it works so far.

andreas-vvv avatar Nov 12 '17 01:11 andreas-vvv

@andreas-vvv I stumbled across your comment while debugging the same issue.

I know it was a while ago, but have you continued to have success with this?

chrisdeeming avatar Nov 08 '18 23:11 chrisdeeming