Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions
nsEditorKeyListener Class Reference

#include <nsEditorInterfaces.h>

Inheritance diagram for nsEditorKeyListener:
Inheritance graph
[legend]
Collaboration diagram for nsEditorKeyListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsEditorKeyListener ()
virtual ~nsEditorKeyListener ()
virtual NS_DECL_ISUPPORTS nsresult HandleEvent (nsIDOMEvent *aEvent)
virtual nsresult KeyDown (nsIDOMEvent *aKeyEvent)
 Processes a key pressed event.
virtual nsresult KeyUp (nsIDOMEvent *aKeyEvent)
 Processes a key release event.
virtual nsresult KeyPress (nsIDOMEvent *aKeyEvent)
 Processes a key typed event.
void handleEvent (in nsIDOMEvent event)
 This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Private Member Functions

virtual nsresult GetCharFromKeyCode (PRUint32 aKeyCode, PRBool aIsShift, char *aChar)

Detailed Description

Definition at line 46 of file nsEditorInterfaces.h.


Constructor & Destructor Documentation


Member Function Documentation

virtual nsresult nsEditorKeyListener::GetCharFromKeyCode ( PRUint32  aKeyCode,
PRBool  aIsShift,
char *  aChar 
) [private, virtual]

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters:
evtThe Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.
virtual nsresult nsEditorKeyListener::KeyDown ( nsIDOMEvent aKeyEvent) [virtual]

Processes a key pressed event.

Parameters:
aKeyEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMKeyListener.

virtual nsresult nsEditorKeyListener::KeyPress ( nsIDOMEvent aKeyEvent) [virtual]

Processes a key typed event.

Parameters:
aKeyEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMKeyListener.

virtual nsresult nsEditorKeyListener::KeyUp ( nsIDOMEvent aKeyEvent) [virtual]

Processes a key release event.

Parameters:
aKeyEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMKeyListener.


The documentation for this class was generated from the following file: