I have an autocomplete popup that opens when a user starts a cell with ‘#’. When the popup is open, I want to scroll the popup options when ArrowUp or ArrowDown is pressed (instead of going to the above/below cells in HOT).
I am using ev.stopImmediatePropagation() within beforeKeyDown() to achieve this. However, it doesn’t work. The popup scrolls - but, the event gets propagated and the active cell also changes.
Here is a snippet showing how ev.stopImmediatePropagation() isn’t working.
https://codesandbox.io/p/sandbox/clever-tree-pphk62?file=%2Fsrc%2Findex.js%3A34%2C25
How do you resolve this issue?