ssborbis/ContextSearch-web-ext

"Quick Menu" should be hidden in a text field when I type

Opened this issue · 8 comments

Google Chrome 
Context Search v1.46.26

Quick Menu enabled in text fields. The context menu should disappear if I type text or move the cursor (with the mouse or with the keyboard) but it does not always work, example:

Grabacion.de.pantalla.2024-06-09.a.las.17.56.22.mov

I assume you're using the Auto method of launching the quick menu?

You're right that arrow keys do not close the menu. I'll check on that.

Can you confirm this option is unchecked in your settings?
image

I think I found the issue. If you're in a position to do so, you could try the latest code in the master branch

It works if I type but not if I move the cursor with the arrow keys.

Arrow keys are currently used to navigate the menu. I can see about adding an option to disable them for that purpose.

But in case of input fields it does not work like that. In this case the arrow keys move the cursor through the text, not through the menu:
Videocaptura de pantalla_20240708_205330.webm

You're right. I was thinking of another section of code. The issue here is event types. Arrow keys only register keydown / keyup events and I'm looking for input. This was somewhat intentional to not necessarily close the menu if non-character keys are being used.

Anyway, I added a hidden setting quickMenuCloseOnEditKeydown you can set to true and close the menu with arrow keys, tab, etc