-
I currently have these configurations in
And the behavior that I am getting is that when the completion menu shows and I click enter, it behaves like a normal enter and creates a new line. The behavior I want is for enter to behave like a normal enter except when I have highlighted a completion list item. In that case, I want enter to hide the menu. I tried emulating this behavior using
but even when I haven't highlighted a completion list item, enter just removes the completion list. In other words, I want enter to confirm the completion if and only if I have used tab to highlight something. Otherwise, just behave like normal. Is it possible to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the answer. |
Beta Was this translation helpful? Give feedback.
Found the answer.
complete_info()["selected"]
gives that info.