Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
InputEvent() コンストラクターは、新しい InputEvent オブジェクトを作成します。
イベントの名前の文字列です。 大文字小文字の区別があり、ブラウザーは beforeinput または input を設定します。
options 省略可オブジェクトで、UIEvent() で定義されたプロパティに加え、以下のプロパティを持つことができます。
inputType 省略可文字列で、テキストの挿入、削除、書式設定など、編集可能なコンテンツに対する変更の種類を指定します。
data 省略可文字列で、挿入する文字を保持します。 これは、変更がテキストを挿入しない場合(例えば、文字を削除する場合など)、空文字列になることがあります。
isComposing 省略可論理値で、そのイベントが変換セッションの一部であることを示します。つまり、 compositionstart イベントの後で、 compositionend イベントの前にあることを意味します。既定では、 false です。
新しい InputEvent オブジェクトです。
| UI Events # dom-inputevent-inputevent |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年11月18日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.