Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Bug: IME's "Enter" trigger the "open tiddler" #9

Closed
linonetwo opened this issue Sep 13, 2020 · 2 comments
Closed

Bug: IME's "Enter" trigger the "open tiddler" #9

linonetwo opened this issue Sep 13, 2020 · 2 comments

Comments

@linonetwo
Copy link

If the user is using an input method for example Chinese IME or Japanese IME, typing "Enter" normally means commit what is being compsed, but in commandpalette it will trigger an action.

Can you wait until IME submit, then allow listener of "Enter" to work?

  document.addEventListener('compositionstart', () => {
    isTypingUsingIME = true;
  });
  document.addEventListener('compositionend', () => {
    isTypingUsingIME = false;
  });
@Souk21
Copy link
Owner

Souk21 commented Jul 27, 2022

Thanks for the report
That should be bixed in 0.0.7, let me know :)

@Souk21 Souk21 closed this as completed Jul 27, 2022
@linonetwo
Copy link
Author

Glad to see you! Since it has been 2 years, I have already made a fork and made it typescript https://github.com/tiddly-gittly/tiddlywiki-plugins/blob/master/src/commandpalette/src/CommandPaletteWidget.ts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants