Interface nokia.maps.dom.KeyboardEventTarget
Interface Summary
Each class implementing this interface delcares that it can act as the target for certain events. Each event in this interface (and therefore also within the classes implementing the interface) represents an event of a specific type.
The following example shows event handling for events of the type "click":
// Note that "obj" can be either a DOM node or any other JavaScript object.
var obj = nokia.maps.dom.EventTarget( {} );
obj.addListener("click", function (evt) {
console.log("This is the '"+evt.type+"' event!");
});
obj.dispatch( new nokia.maps.dom.Event({
type: "click"
});
The example creates an instant of nokia.maps.dom.EventTarget, adds a listener
for "click" events to it, and dispatches a "click" event to all registered listeners (in
this case one) - the listeners receive the object that represents the target of the event.
For more information about dispatching events, please refer to the documentation of the nokia.maps.dom.EventTarget.
Method Summary
event:keydown
(evt)
This event is fired if a key is pressed and delivered to the node that currently has the focus.
event:keyup
(evt)
This event is fired if a key is released and delivered to the node that currently has the focus.
Events
keydown(evt)
This event is fired if a key is pressed and delivered to the node that currently has
the focus.
Parameters:
| {nokia.maps.dom.KeyboardEvent} | evt | An object representing the event |
keyup(evt)
This event is fired if a key is released and delivered to the node that currently has
the focus.
Parameters:
| {nokia.maps.dom.KeyboardEvent} | evt | An object representing the event |
