Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

CompositionEvent is not getting triggered for non input field

  • Нет ответов
  • 1 имеет эту проблему
  • 9 просмотров
more options

Dear All,

We are working on a project where the page will have a canvas element and page focus will be on canvas element and when users interact, all the key input will be captured using keydown and keyup event and will be sent to the server.

All the normal characters work but composition keys are not working. Even composition events are not getting fired. I tried below example

https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionstart_event

Any help on this will be appreciated.

Thanks

Dear All, We are working on a project where the page will have a canvas element and page focus will be on canvas element and when users interact, all the key input will be captured using keydown and keyup event and will be sent to the server. All the normal characters work but composition keys are not working. Even composition events are not getting fired. I tried below example https://developer.mozilla.org/en-US/docs/Web/API/Element/compositionstart_event Any help on this will be appreciated. Thanks