Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

CodeHintManager needs to be smarter about key processing #2539

@redmunds

Description

@redmunds

This was reported by @zoufahl when developing CSS Code Hints.

In CodeHintManager handleKeyEvent function is this block of code:

  } else if (event.type === "keyup") {
    if (_inSession(editor)) {
      if ((event.keyCode !== 32 && event.ctrlKey) || event.altKey || event.metaKey) {
        // End the session if the user presses any key with a modifier (other than Ctrl+Space).
        _endSession();
      } else ...

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions