Ovi Maps API Reference

Contents

Interface ovi.mapsapi.dom.KeyboardEventTarget

Interface Summary

This class is a virtual interface that does only exist for documentational purpose. Each class implementing this interface will delcare that it is able to be the target of certain events. Each event in this interface (and therefore as well within the class implementing that interface) describes an event of a specific type.

The following example will show event handling at the example of an event of the type click:

// Note that "obj" can be either a DOM node or any other JavaScript object.
var obj = ovi.mapsapi.dom.EventTarget( {} );
obj.addListener("click", function(evt) {
	console.log("This is the '"+evt.type+"' event!");
});
obj.dispatch( new ovi.mapsapi.dom.Event({
	type: "click"
});
As you can see the event click doesn't mean that there is a method click that is called, but rather that an event of the type click is fired and dispatched to all listeners registered with the object that is the target of the event.

For more information about event dispatching please read the documentation of the ovi.mapsapi.dom.EventTarget class!

Events
keydown(evt)
Fired if a key is pressed and delivered to the node that currently has the focus.
Parameters:
{ovi.mapsapi.dom.KeyboardEvent} evt The event object of this event.
keyup(evt)
Fired if a key is released and delivered to the node that currently has the focus.
Parameters:
{ovi.mapsapi.dom.KeyboardEvent} evt The event object of this event.
Documentation generated on Fri Aug 19 2011 13:36:01 GMT+0200 (CEST).