LibreOffice
LibreOffice 25.2 SDK API Reference
Public Member Functions | List of all members
XKeyListener Interface Referencepublished

makes it possible to receive keyboard events. More...

import"XKeyListener.idl";

Inheritance diagram for XKeyListener:
XEventListener XInterface

Public Member Functions

void keyPressed ([in] com::sun::star::awt::KeyEvent e)
 is invoked when a key has been pressed. More...
 
void keyReleased ([in] com::sun::star::awt::KeyEvent e)
 is invoked when a key has been released. More...
 
- Public Member Functions inherited from XEventListener
void disposing ([in] com::sun::star::lang::EventObject Source)
 gets called when the broadcaster is about to be disposed. More...
 
- Public Member Functions inherited from XInterface
any queryInterface ([in] type aType)
 queries for a new interface to an existing UNO object. More...
 
void acquire ()
 increases the reference counter by one. More...
 
void release ()
 decreases the reference counter by one. More...
 

Detailed Description

makes it possible to receive keyboard events.

See also
com::sun::star::awt::XKeyHandler That interface is better suited for many purposes. In opposite to this listener, the com::sun::star::awt::XKeyHandler doesn't need to be added on exactly the correct widget. Optionally com::sun::star::awt::XKeyHandler can also consume events.
com::sun::star::awt::XVclContainer The function getWindows might be helpful to find the correct widget to add the this listener to.

Member Function Documentation

◆ keyPressed()

void keyPressed ( [in] com::sun::star::awt::KeyEvent  e)

is invoked when a key has been pressed.

◆ keyReleased()

void keyReleased ( [in] com::sun::star::awt::KeyEvent  e)

is invoked when a key has been released.


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