CompositionEvent

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Giao diện DOM CompositionEvent biểu diễn các sự kiện xảy ra do người dùng nhập văn bản một cách gián tiếp.

Event UIEvent CompositionEvent

Constructor

CompositionEvent()

Tạo một instance đối tượng CompositionEvent mới.

Thuộc tính instance

Giao diện này cũng kế thừa các thuộc tính của cha nó, UIEvent, và tổ tiên của nó — Event.

CompositionEvent.data Read only

Trả về các ký tự được tạo bởi phương thức nhập đã kích hoạt sự kiện; giá trị cụ thể phụ thuộc vào loại sự kiện đã tạo ra đối tượng CompositionEvent.

CompositionEvent.locale Read only Deprecated Non-standard

Trả về ngôn ngữ của phương thức nhập hiện tại (ví dụ, ngôn ngữ bố cục bàn phím nếu quá trình soạn thảo liên quan đến một Input method editor).

Phương thức instance

Giao diện này cũng kế thừa các phương thức của cha nó, UIEvent, và tổ tiên của nó — Event.

CompositionEvent.initCompositionEvent() Deprecated

Khởi tạo các thuộc tính của một đối tượng CompositionEvent.

Đặc điểm kỹ thuật

Specification
UI Events
# interface-compositionevent

Tương thích trình duyệt

Xem thêm