Search completed in 0.97 seconds.
20 results for "textinput":
Your results are loading. Please wait...
nsITextInputProcessor
nsidomwindowutils has provided the methods which dispatched keyboard events and composition events almost directly. ...
... gecko changes the dom event behavior, it may not be necessary that the users of this interface need to be updated, i.e., the implementation of this class can be a cushion from the impact of gecko's change. you can create an instance of this interface with the following code: var tip = components.classes["@mozilla.org/text-input-processor;1"]. ...
... createinstance(components.interfaces.nsitextinputprocessor); next, you need to get the rights to create composition or dispatch keyboard events with begininputtransaction() or begininputtransactionfortests(): if (!tip.begininputtransaction(window, callback)) { return; } if begininputtransaction() or begininputtransactionfortests() returns false, it means that another instance of nsitextinputprocessor has composition on the window or is dispatching an event. in this case, other instances cannot create composition nor dispatch keyboard events on the window. the second argument, callback, should be an object which implements nsitextinputprocessorcallback or just a function which is the same as nsitextinputprocessorcallback.onnotify(). ...
...And 24 more matches
nsITextInputProcessorCallback
this interface has a "function" attribute. therefore, js-ime can implement this as a function. ...
...this interface has a "function" attribute. therefore, js-ime can implement this as a function. ...
...this interface has a "function" attribute. therefore, js-ime can implement this as a function. ...
...And 3 more matches
nsITextInputProcessorNotification
attributes attribute type description type acstring the type of request or notification to ime. see type values below. types "request-to-commit" this is required to be handled. ...
...essorcallback.idlscriptable this interface of a request or notification to ime 1.0 66 introduced gecko 38 inherits from: nsisupports last changed in gecko 38.0 (firefox 38.0 / thunderbird 38.0 / seamonkey 2.35) this interface tells details of a request or notification to ime. when gecko supports new notification to ime, this interface may have some new attributes. ...
... if the callback doesn't want to commit the composition synchronously, it's okay to commit it later (i.e., asynchronously). however, gecko will commit the composition with the last composing string internally. ...
...And 2 more matches
Index
Mozilla › Tech › XPCOM › Index
sterfactory no summary! 425 registerfactorylocation no summary! 426 unregisterfactory no summary! 427 unregisterfactorylocation no summary! 428 nsicompositionstringsynthesizer dom, interfaces, interfaces:scriptable, xpcom interface reference this interface is obsoleted in gecko 38. you need to use nsitextinputprocessor instead of this. 429 nsiconsolelistener interfaces, interfaces:scriptable, xpcom, xpcom interface reference called by the nsiconsoleservice when a message is posted to the console. listeners must first be attached to the service using nsiconsoleservice.registerlistener() 430 nsiconsolemessage interfaces, interfaces:scriptable, xpcom, xpcom interface re...
...com interface reference you can't directly instantiate this interface; instead, call nsiwintaskbar.gettaskbarwindowpreview() to get the taskbar preview for a specific window. 1002 nsitelemetry developing mozilla, interfaces, interfaces:scriptable, performance, xpcom, xpcom interface reference implemented by: @mozilla.org/base/telemetry;1 as a service: 1003 nsitextinputprocessor dom, interface, interface:scriptable, reference, référence(2), xpcom interface reference the motivation of this interface is to provide better api than nsidomwindowutils to dispatch key events and create, modify, and commit composition in higher level. nsidomwindowutils has provided the methods which dispatched keyboard events and composition events almost directly. therefore...
...omposition events almost directly. therefore they sometimes caused impossible scenarios in automated tests (what's tested with such events?) and js-ime and/or js-keyboard on firefox os or add-ons may dispatch events with wrong rules. for solving that issue, methods of this interface have been designed for performing a key operation or representing a change of composition state. ...
...And 2 more matches
IME handling guide
tive ime handlers get the rights to use texteventdispatcher with a call of beginnativeinputtransaction(). then, startcomposition(), setpendingcomposition(), flushpendingcomposition(), commitcomposition(), etc. are available if beginnativeinputtransaction() return true. these methods automatically manage composition state and dispatch widgetcompositionevent properly. this is also used by mozilla::textinputprocessor which can emulates (or implements) ime with chrome script. so, native ime handlers using this class means that the dispatching part is also tested by automated tests. mozilla::widgetcompositionevent internally, widgetcompositionevent represents native ime behavior. its message is one of following values: ecompositionstart this is dispatched at starting a composition. this represents ...
...cko disable ime in imm mode on windows every window on windows is associated an imcontext. when gecko disables ime, mozilla::widget::imehandler::setinputcontext() disasociates the context from the window. how does gecko disable ime in tsf mode on windows mozilla::widget::tsftextstore sets focus to a dummy context which disables the keyboard. how does gecko disable ime on mac mozilla::widget::textinputhandler::handlekeydownevent() doesn't call focused view's interpretkeyevents. this prevents native key events to be passed to ime. how does gecko disable ime on gtk mozilla::widget::imcontextwrapper sets focus to a dummy context which doesn't have ime composition. how does gecko disable ime on android ? mhtmlinputtype the value is a string representing the focused editor. "text", "pass...
... retrieve expected character's rect even if the cache of tsftextstore is different from the actual contents because tip typically needs caret position's character rect (for a popup to indicate current input mode or next word suggestion list) or first character rect of the target clause of current composition (for a candidate list window of conversion). ...
...n if the cache of tsftextstore is different from the actual contents because tip typically needs caret position's character rect (for a popup to indicate current input mode or next word suggestion list) or first character rect of the target clause of current composition (for a candidate list window of conversion). mac both ime and key events are handled in textinputhandler.mm. mozilla::widget::textinputhandlerbase is the most base class. mozilla::widget::plugintextinputhandler inherits textinputhandlerbase and handles key events and ime events on focused plugin. mozilla::widget::imeinputhandler inherits textinputhandlerbase and handles ime related events. mozilla::widget::textinputhandler inherits textinputhandlerbase and implements nstextinput protocol of cocoa. the instance is created per nsch...
nsIDOMWindowUtils
y. double computeanimationdistance( in nsidomelement element, in astring property, in astring value1, in astring value2 ); parameters element property value1 value2 return value createcompositionstringsynthesizer() obsolete since gecko 38 method for creating an instance which has nsicompositionstringsynthesizer. however, this is obsoleted since gecko 38, use nsitextinputprocessor instead. nsicompositionstringsynthesizer createcompositionstringsynthesizer(); return value an instance of nsicompositionstringsynthesizer. it's associated with the dom window which is associated with the instance of nsidomwindowutils. disablenontestmouseevents() disable or enable non synthetic test mouse events on *all* windows. cannot be accessed from unprivileged context (not co...
...uts() resumes timeouts on this window and its descendant windows. void resumetimeouts(); parameters none. sendcompositionevent() obsolete since gecko 38 synthesize a composition event to the window. cannot be accessed from unprivileged context (not content-accessible) will throw a dom security error if called without universalxpconnect privileges. this is obsoleted since gecko 38. use nsitextinputprocessor, instead. void sendcompositionevent( in astring atype, ); obsolete since gecko 9 parameters atype the event type: "compositionstart" or "compositionend". void sendcompositionevent( in astring atype, in astring adata, in astring alocale ); obsolete since gecko 38 parameters atype the event type: "compositionstart" or "compositionend" obsolete since gecko 36. since g...
...keyevent() synthesize a key event to the window. the event types supported are: keydown, keyup, keypress. key events generally end up being sent to the focused node. cannot be accessed from unprivileged context (not content-accessible) will throw a dom security error if called without universalxpconnect privileges. however, this is deprecated since gecko 38 (and will be obsolete soon), use nsitextinputprocessor instead. boolean sendkeyevent( in astring atype, in long akeycode, in long acharcode, in long amodifiers, in unsigned long aadditionalflags optional ); deprecated since gecko 38.0 boolean sendkeyevent( in astring atype, in long akeycode, in long acharcode, in long amodifiers, in boolean apreventdefault optional ); obsolete since gecko 15.0 parameters atype ev...
title - Archive of obsolete content
the rsstitle element contain onlyplain text data. note: in userland's rss 0.91 there is a 100 character maximum limit. ...
...>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>rss image element</td> <td><image></td> <td>✔</td> <td>✔</td> <td>✔</td> <td>✔</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>rss item element</td> <td><item></td> <td>✔</td> <td>✔</td> <td>✔</td> <td>✔</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> <tr> <td>rss text input element</td> <td><textinput></td> <td>✔</td> <td>✔</td> <td>✔</td> <td>✔</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> <td>?</td> </tr> </table> </center> see also none rss element</td> <th colspan="9" style="text-align:center">rss version ...
Index - Archive of obsolete content
apply to any xul-based application; however, to keep from getting completely overwhelmed, we're going to focus specifically on firefox. 3248 element rss, rss:element_reference no summary! 3249 title rss, rss:element_reference <title>...</title> - the rss title element has 4 uses. it is used to specify thetitle of a <channel>, an <image>, an <item>, or a <textinput>. 3250 events archived event pages 3251 domsubtreemodified the following code will display the time of last dom change on the title bar of the page. 3252 mozaudioavailable the mozaudioavailable event is fired when the audio buffer is full and the corresponding raw samples are available. 3253 mozbeforeresize th...
Extensions - Archive of obsolete content
rties instead of determining the type yourself, as the code already handles various special and complex cases that would take a lot of code to deal with manually. the following are the most common properties that you can check. an example follows. target the element that was context clicked. if the keyboard was used to open a context menu, this will be the focused element. ontextinput true if the target is a plain or password type input, a textarea, or an editable area. this would be used to enable or disable commands related to text editing. onimage true if the target is an image. hasbgimage true if the target or an ancestor has a background image. onmathml true if the target is a mathml element. onlink true if the target is ...
Element - Archive of obsolete content
astbuilddate> (rss last build date element) <link> (rss link element) m <managingeditor> (rss managing editor element) n <name> (rss name element) o p <pubdate> (rss published date element) q r <rating> (rss rating element) <rss> (rss's root "rss" element) s <skipdays> (rss skip days element) <skiphours> (rss skip hours element) <source> (rss source element) t <textinput> (rss text input element) <title> (rss title element) <ttl> (rss ttl element) u <url> (rss url element) v w <webmaster> (rss web master element) <width> (rss width element) x y z ...
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
meel} use:selectonfocus type="text" id="todo-0" autocomplete="off" class="input input__lg" /> with a few lines of code we can add functionality to regular html elements, in a very reusable and declarative way. it just takes an import and a short directive like use:selectonfocus that clearly depicts its purpose. and we can achieve this without the need to create a custom wrapper element like textinput, myinput or similar. moreover, you can add as many use:action directives as you want to an element. also, we didn't have to struggle with onmount(), ondestroy() or tick() — the use directive takes care of the component lifecycle for us. other actions improvements in the previous section, while working with the todo components, we had to deal with bind:this, tick(), and async functions just t...
Debugging Frame Reflow
other reflow debug options gecko_display_reflow_flag_pixel_errors setting this option via set gecko_display_reflow_flag_pixel_errors = 1 enables a veri...
nsICompositionStringSynthesizer
idlscriptable this interface is a composition string synthesizer interface that synthesizes composition string with arbitrary clauses and a caret 1.0 66 introduced gecko 26 obsolete gecko 38 inherits from: nsisupports last changed in gecko 38.0 (firefox 38.0 / thunderbird 38.0 / seamonkey 2.35) this interface is obsoleted in gecko 38. you need to use nsitextinputprocessor instead of this. every instance is associated with a dom window at created by nsidomwindowutils.createcompositionstringsynthesizer(). to create an instance for this: var domwindowutils = window.windowutils; var compositionstringsynthesizer = domwindowutils.createcompositionstringsynthesizer(); for example, when you create a composition whose composing string is "foo-bar-buzz" and "ba...
nsIFeed
an array of the hours of the day during which the feed should not be fetched. the hours are represented as integer values from 0 (midnight) to 23 (11:00 pm), and are always indicated using utc. note: this field is rarely implemented. subtitle nsifeedtextconstruct returns a subtitle for the feed, based on its description, subtitle, and appropriate extensions. textinput nsiwritablepropertybag2 information about a text box that can be displayed along with the feed by aggregators that support it, to allow the reader to send a response back to the source of the feed. note: this field is almost never used, and is incompatible with many aggregators. type unsigned long indicates the type of content presented by a feed. see constants.
XPCOM Interface Reference
int64nsisupportsprtimensisupportspruint8nsisupportspruint16nsisupportspruint32nsisupportspruint64nsisupportsprimitivensisupportsprioritynsisupportsstringnsisupportsvoidnsisupportsweakreferencensisyncjpakensisyncmessagesendernsitxttohtmlconvnsitaggingservicensitaskbarpreviewnsitaskbarpreviewbuttonnsitaskbarpreviewcontrollernsitaskbarprogressnsitaskbartabpreviewnsitaskbarwindowpreviewnsitelemetrynsitextinputprocessornsitextinputprocessorcallbacknsitextinputprocessornotificationnsithreadnsithreadeventfilternsithreadinternalnsithreadmanagernsithreadobservernsithreadpoolnsithreadpoollistenernsitimernsitimercallbacknsitoolkitnsitoolkitprofilensitoolkitprofileservicensitraceablechannelnsitransactionnsitransactionlistnsitransactionlistenernsitransactionmanagernsitransferablensitransportnsitransporteventsin...
Element.insertAdjacentText() - Web APIs
ror the position specified is not a recognised value. visualization of position names <!-- beforebegin --> <p> <!-- afterbegin --> foo <!-- beforeend --> </p> <!-- afterend --> note: the beforebegin and afterend positions work only if the node is in a tree and has an element parent. example beforebtn.addeventlistener('click', function() { para.insertadjacenttext('afterbegin',textinput.value); }); afterbtn.addeventlistener('click', function() { para.insertadjacenttext('beforeend',textinput.value); }); have a look at our insertadjacenttext.html demo on github (see the source code too.) here we have a simple paragraph. you can enter some text into the form element, then press the insert before and insert after buttons to insert it before or after the existing paragraph text u...
MessagePort.close() - Web APIs
Web › API › MessagePort › close
note: this feature is available in web workers. syntax port.close() returns void. parameters none. example in the following code block, you can see a handlemessage handler function, run when a message is sent back to this document using eventtarget.addeventlistener. channel.port1.addeventlistener('message', handlemessage, false); function handlemessage(e) { para.innerhtml = e.data; textinput.value = ''; } channel.port1.start(); you could stop messages being sent at any time using channel.port1.close(); specifications specification status comment html living standardthe definition of 'close()' in that specification. living standard ...
MessagePort.start() - Web APIs
Web › API › MessagePort › start
living standard ...
<input type="text"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › text
tocomplete, list, maxlength, minlength, pattern, placeholder, readonly, required and size idl attributes list, value methods select(), setrangetext() and setselectionrange(). value the value attribute is a domstring that contains the current value of the text entered into the text field. you can retrieve this using the value property in javascript. let thetext = mytextinput.value; if no validation constraints are in place for the input (see validation for more details), the value may be an empty string (""). additional attributes in addition to the attributes that operate on all <input> elements regardless of their type, text inputs support the following attributes: attribute description list the id of the <datalist> element that con...
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
Web › HTML › Element › input
e a radio button with div {appearance: radio;} or a radio look like a checkbox with [type="checkbox] {appearance: checkbox;}, but don't. setting appearance: none removes platform native borders, but not functionality. caret-color a property specific to text entry-related elements is the css caret-color property, which lets you set the color used to draw the text input caret: html <label for="textinput">note the red caret:</label> <input id="textinput" class="custom" size="32"> css input.custom { caret-color: red; font: 16px "helvetica", "arial", "sans-serif" } result object-position and object-fit in certain cases (typically involving non-textual inputs and specialized interfaces), the <input> element is a replaced element. when it is, the position and size of the element's size a...