[Very Annoying] Date picker opens when cursor in front of image link

Steps to reproduce

  1. Have an item with a note like

     ![](cat.gif)
     YAYAY
    
  2. Have cursor at YAYAY

  3. Hit Up to move the cursor up

  4. Hit Enter to move the image link down

Expected result

A blank line at the beginning of the note, and my cursor is still at the beginning of the image link.

Actual result

The date picker opens up.

Environment

Chrome on macOS

Additional information

Itā€™s annoying because I like the use the keyboard for everything, and when the date picker unintentionally pops up, I end up accidentally selecting a date., and the image link gets destroyed, and the cursor doesnā€™t go where I want it to.

I canā€™t seem to reproduce this on my mac. On top of that, weā€™ve specifically coded against arrow keys to not trigger the popup.

let IGNORED_KEYS = [KEYCODES.UP, KEYCODES.DOWN, KEYCODES.LEFT, KEYCODES.RIGHT, KEYCODES.ESC, KEYCODES.TAB, KEYCODES.DELETE, KEYCODES.BACKSPACE];

Not sure whatā€™s happening on your end. If you can find consistent steps to get the issue to happen, I should be able to get you a fix.

Did you see any errors in the js console?

@Shida I updated the description with steps you should be able to reproduce! Itā€™s the Enter key thatā€™s causing the issue.

Ok I got it to repro and I have it fixed. Will be deployed in a few days.