nsIEditorIMESupport 编辑

editor/idl/nsIEditorIMESupport.idlScriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Method overview

void beginComposition(in nsTextEventReplyPtr aReply); Native code only! Obsolete since Gecko 2.0
void endComposition(); Obsolete since Gecko 2.0
void forceCompositionEnd();
void getPreferredIMEState(out unsigned long aState); Native code only!
void getQueryCaretRect(in nsQueryCaretRectEventReplyPtr aReply); Native code only! Obsolete since Gecko 1.9.1
void getReconversionString(in nsReconversionEventReplyPtr aReply); Native code only! Obsolete since Gecko 1.9.1
void notifyIMEOnBlur(); Obsolete since Gecko 1.9.1
void notifyIMEOnFocus(); Obsolete since Gecko 1.9.1
void queryComposition(in nsTextEventReplyPtr aReply); Native code only! Obsolete since Gecko 2.0
void setCompositionString(in DOMString aCompositionString, in nsIPrivateTextRangeListPtr aTextRange, in nsTextEventReplyPtr aReply); Native code only! Obsolete since Gecko 2.0

Attributes

AttributeTypeDescription
composingbooleanwhether this editor has active IME transaction. Read only.

Methods

Native code only!

beginComposition

Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Handles the start of inline input composition.

void beginComposition(
  in nsTextEventReplyPtr aReply
);
Parameters
aReply

endComposition()

Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Handles the end of inline input composition.

void endComposition();
Parameters

None.

forceCompositionEnd()

Force the composition end.

void forceCompositionEnd();
Parameters

None.

Native code only!

getPreferredIMEState

Get preferred IME status of current widget.

void getPreferredIMEState(
  out unsigned long aState
);
Parameters
aState
Native code only!

getQueryCaretRect

Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Get the query caret rect.

void getQueryCaretRect(
  in nsQueryCaretRectEventReplyPtr aReply
);
Parameters
aReply
Native code only!

getReconversionString

Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Get the reconversion string.

void getReconversionString(
  in nsReconversionEventReplyPtr aReply
);
Parameters
aReply

notifyIMEOnBlur()

Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Notify for IME when the editor lost focus.

void notifyIMEOnBlur();
Parameters

None.

notifyIMEOnFocus()

Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Notify for IME when the editor got focus.

void notifyIMEOnFocus();
Parameters

None.

Native code only!

queryComposition

Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Get the composition position.

void queryComposition(
  in nsTextEventReplyPtr aReply
);
Parameters
aReply
Native code only!

setCompositionString

Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Sets the inline input composition string. beginComposition() must be called prior to this.

void setCompositionString(
  in DOMString aCompositionString,
  in nsIPrivateTextRangeListPtr aTextRange,
  in nsTextEventReplyPtr aReply
);
Parameters
aCompositionString
aTextRange
aReply

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:42 次

字数:8079

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文