![]() The TriggerEvent is invoked whenever a device hardware trigger is pressed or released. The internal representation of the key expressed in decimal, e.g. To unregister for key events use the syntax url(''), an example is provided below. Note that this event is not compatible with the Remap parameter as the two are mutually exclusive. The same event handler can be used to process multiple keys. The KeyEvent must be set after the KeyValue parameter and optionally the Dispatch parameter and to capture multiple keys you should repeat this process. Event parameters can be accessed either directly or via JSON objects.Īfter a KeyValue parameter has been used to specify which key to capture and whether or not to dispatch it, setting a KeyEvent will associate that key with the event to call when that key is pressed. Each event will in most cases have a number of parameters associated with it which will either be strings or JavaScript arrays. Events can cause a navigation to a new URL or a JavaScript function on the page to be invoked. Most modules contain events and those returned from this module are given below along with the event parameters. Values are returned to the caller in RhoElements via Events. Set to 'Disabled' to prevent this behaviour. Specifies a key which, when pressed, will navigate to the start page as defined in the RhoElements configuration. ![]() 'None' disables all the accelerator keys and 'Norm' uses the default RhoElements settings for Accelerator Keys. 'All' enables all accelerator keys for the browser to handle. Also note the parameter is incompatible with the KeyEvent as the two are mutually exclusive. Note this parameter is incompatible with KeyValue:all or Dispatch:True, otherwise this would result in two keys being received. This parameter must be set after the KeyValue parameter specifying which key is being remapped. See the remarks section for a list of keys which can not be captured.Īfter a key has been captured it will be remapped and the new key and sent to RhoElements. The value of the received key is passed as a return value to the KeyEvent, this can be used to find the value of a specific key. Set this parameter to 'All' to capture all keys. For example if you have focus in a text box and are intercepting keys set this to 'False' to avoid having the keys appear in the box. NameĪfter a key has been intercepted this parameter will determine whether or not it will still be received by the visual components. Items listed in this section indicate parameters, or attributes which can be set. ke圜tEMML("dispatch: value keyEvent:url('JavaScript:doFunction(%json)')") To set multiple EMML parameters / events on a single line use the following syntax: tEMML("") Į.g. To Set ke圜apture return events via JavaScript use the following syntax: keycapture.event = JavaScript Function Į.g. To Set ke圜apture parameters via JavaScript use the following syntax: keycapture.parameter = 'value' remembering to enclose your value in quotes where appropriate. ![]() ke圜apture (Module) Syntaxīy default the JavaScript Object 'ke圜apture' will exist on the current page and can be used to interact directly with the ke圜apture. The Ke圜apture module can intercept or override hardware keys, and is typically used to assign certain application functions to physical keys or other hardware buttons. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |