thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 127 forks source link

Form inputs do not work well with IME enabled #1433

Open tmokmss opened 9 months ago

tmokmss commented 9 months ago

Describe the bug When I try to type something with IME enabled into the form e.g. query parameters below, it does not work well because the input is fixed right after we type a key. This makes it a lot difficult to use CJK values as a form input.

image

I think we need to specially handle keydown events using event.isComposing property (ref).

eventTarget.addEventListener("keydown", (event) => {
  if (event.isComposing || event.keyCode === 229) {
    return;
  }
  // do something
});

To Reproduce Enable Japanese keyboard, and type a -> i.

Current behavior: as soon as we type each key, each letter is forcefully converted to and

Expected behavior Expected behavior: It should allow us to convert あい to other candidates like .

Platform:

Are you using the free version/paid version/trial: free version

rangav commented 9 months ago

Thanks @tmokmss for reporting the bug, Will fix it asap.