nsIEditorIMESupport 编辑
editor/idl/nsIEditorIMESupport.idl
Scriptable 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
Attribute | Type | Description |
composing | boolean | whether 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
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
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
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论