Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] onDidCompositionStart and onDidCompositionEnd all not work #4756

Open
1 of 2 tasks
carly1987 opened this issue Nov 19, 2024 · 1 comment
Open
1 of 2 tasks

[Bug] onDidCompositionStart and onDidCompositionEnd all not work #4756

carly1987 opened this issue Nov 19, 2024 · 1 comment
Labels
info-needed Issue requires more information from poster

Comments

@carly1987
Copy link

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.52.0#XQAAAALcAQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw0HLKUEChknxTyhsOtw_oZuoS-bntDRvUjkOwcRtcHNwKoOpD9hqF1FLGw7nCYILel2Pa8v_zJ3fSGF5dVzmbj45xm9DS0quUH1uxuaQU24y-oAP3vtx5M3HalpxMzXI2y1eGEyRt5HKHPqfiOzW11I7ogt2fw-2rKRw6yTv4W3f7jX5s0pQNBMs-Pv8eG9wBi258C1v91Lugaj0nCHgFusOpjMH0mhTNiVMNj3wx71Q62ADaTXMrjnG5_9Irg8GSe341YKZJ2wrOk2zz-SueEwjYj5zLdk_H96tiyJq_A_bHoo0g41bZADxo4uvor8llAZ0ofiOXHss0iBf3hVaJdTvaaOzGc4w583AivT0MBNNBcRRe_2jGqAA

Monaco Editor Playground Code

const myEditor = monaco.editor.create(document.getElementById("container"), {
	value,
	language: "javascript",
	automaticLayout: true,
});

myEditor.onDidCompositionStart(() => {
	alert('start')
})

myEditor.onDidCompositionEnd(() => {
	alert('end')
})

Reproduction Steps

No response

Actual (Problematic) Behavior

No response

Expected Behavior

No response

Additional Context

No response

@rzhao271
Copy link
Contributor

The event handlers work for me using Microsoft Pinyin IME on Microsoft Edge on Windows.
I believe that the event handlers are for IME composition. Did you try using an IME, and if so, which?

@rzhao271 rzhao271 added the info-needed Issue requires more information from poster label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants