Temporarily disable input method interception.#159699
Temporarily disable input method interception.#159699alexdima merged 8 commits intomicrosoft:mainfrom
Conversation
alexdima
left a comment
There was a problem hiding this comment.
Tackling this with system calls seems to be taking a very big hammer to try to fix this problem. Have you explored calling .preventDefault() in the compositionstart event when chords are active here --
|
Thanks for the advice. |
rebase, sync fork Author: guttyon <danmarikimari@gmail.com> interactive rebase in progress; onto 851a0da Last command done (1 command done): pick e021b16 Temporarily disable input method interception. fixes microsoft#151496 Next command to do (1 remaining command): pick 07b3ec4be36 add keybindingChordMode. move ime code into if-closure in _leaveChordMode. Because original code is called multi time while typing key. You are currently rebasing branch 'temporarily_disable_input_method_interception' on '851a0dad5dd'.
…Mode. Because original code is called multi time while typing key.
e021b16 to
476520d
Compare
|
Since preventDefault does not seem to avoid interception by IME, I thought of another means. In the end, we ended up adding two lines as follows We decided to use the extension for IME operation and eliminated it from vscode. This pull request eliminates the need to turn the IME off and back on again when using shortcut keys. |
|
@guttyon I've explored a different technique, to make all editors |
|
@alexdima |
Fixes #151496
Fixes #72176
This fix for Windows only, not for Linux .
This fix uses ffi-napi win32 ImmGetContext ImmReleaseContext ImmSetOpenStatus ImmGetOpenStatus GetFocus.
This fix adds the following steps.