-
Notifications
You must be signed in to change notification settings - Fork 7.6k
CodeHintManager needs to be smarter about key processing #2539
Comments
Reviewed |
@iwehrman I don't think we need the new code that you added to check for modifier keys. I don't see any issue after removing the code. Please let me know the specific issue that you want to resolve it with this code. Otherwise, we do really need to remove the code since lots of keyboard layouts require users to type characters like |
|
If it is the case, I would like to know the scenario where the keyboard shortcuts gets caught. My guess is that Ian just wants to dismiss code hints when a keyboard shortcut is pressed. We didn't do that in the old design and the code hints keep showing. |
The original idea was to close the hinting session on "complex" editor changes, as can occur as a result of, e.g., cut or paste operations. Perhaps we can find another way to detect such changes. |
Thanks. I'm removing this particular code so that users can type any characters that require modifier keys. |
Confirmed. Closing. |
This does not affect any current code hints. Closing. |
This was reported by @zoufahl when developing CSS Code Hints.
In CodeHintManager
handleKeyEvent
function is this block of code:The problem is when the code hint session starts on keyup and the user is trying to insert a "{" from a German keyboard (which is Alt+8). Maybe a keybinding lookup would make more sense here. Consult @RaymondLim.
The text was updated successfully, but these errors were encountered: