You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hitting Enter key during IME composition on the find widget should not be handled by VSCode #107154
Open the find widget and input a text with IME, then hit Enter key to fix the IME input.
The find widget is closed and the text is inserted to the editor. This is because, Enter key, which was intended to confirm IME input, was handled by VSCode and triggers closeFindWidget command configured above though it should not have been.
Enter key is used by IME to confirm the input texts and should not be handled by VSCode during IME composition.
During text input in the editor areas, such IME handling can be done by extensions making use of compositionStart and compositionEnd events, like VSCodeVim does. However, it's impossible outside the editor areas like on the find widget.
VSCode should handle such IME composition on the find widget (and other native UIs).
Does this issue occur when all extensions are disabled?: Yes
Good point. Disallowing keybindings during composition makes most of the sense but I remember seeing issues complaining that some of the keyboard shortcuts not working in composition in some cases. Thus a new global context key isComposing will be added to give the choice to users.
I can still reproduce this. Though I am maybe using a different composition widget on my macOS. I just hold the e key for example and this composition widget shows up. Pressing enter closes the find widget as the original issue outlined.
@tuttieee may I ask what IME you are using? I tested with macOS Hiragana IME but it works
also Isidor Nikolic (@isidorn) the one you see is slightly different, it's macOS native accent picker (I don't really know the name) and when that quick pick shows up, the IME is not in composition mode, thus we can't really tell if the quick pick is visible or not. It's similar to the emoji quick pick which we don't support.
Peng Lyu (@rebornix) I'm sorry, I found I tested it with another old keybinding that didn't care about isComposing and it was successful deleting the wrong keybinding.
I confirmed it now works fine.
Thank you for your support 😄
Activity
vscodebot commentedon Sep 21, 2020
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
whitphx commentedon Sep 21, 2020
The suggested issue does not seem related
rebornix commentedon Oct 12, 2020
Good point. Disallowing keybindings during composition makes most of the sense but I remember seeing issues complaining that some of the keyboard shortcuts not working in composition in some cases. Thus a new global context key
isComposingwill be added to give the choice to users.isidorn commentedon Oct 29, 2020
I can still reproduce this. Though I am maybe using a different composition widget on my macOS. I just hold the
ekey for example and this composition widget shows up. Pressing enter closes the find widget as the original issue outlined.3 remaining items
whitphx commentedon Oct 29, 2020
Thank you, I confirmed it too.
In my case, I tested it with the keybinding that I have posted on the first comment and fixed to use
isComposinglike this:The problem still exists.
I used the lasted insider version.
However, interestingly, the keybinding below that is included in the defaults prevents closing the find widget during IME composition expectedly.
rebornix commentedon Nov 11, 2020
@tuttieee may I ask what IME you are using? I tested with macOS Hiragana IME but it works
also Isidor Nikolic (@isidorn) the one you see is slightly different, it's macOS native accent picker (I don't really know the name) and when that quick pick shows up, the IME is not in composition mode, thus we can't really tell if the quick pick is visible or not. It's similar to the emoji quick pick which we don't support.
isidorn commentedon Nov 11, 2020
Peng Lyu (@rebornix) thanks for explaining. I was not aware it is a different thing...
whitphx commentedon Nov 11, 2020
Peng Lyu (@rebornix) I'm sorry, I found I tested it with another old keybinding that didn't care about
isComposingand it was successful deleting the wrong keybinding.I confirmed it now works fine.
Thank you for your support 😄