#include <YEvent.h>
Inheritance diagram for YKeyEvent:
Public Member Functions | |
YKeyEvent (const string &keySymbol, YWidget *focusWidget=0) | |
string | keySymbol () const |
YWidget * | focusWidget () const |
virtual YCPMap | ycpEvent () |
virtual YCPValue | userInput () |
Protected Attributes | |
string | _keySymbol |
YWidget * | _focusWidget |
|
Constructor. Create a key event with a specified key symbol (a text describing the key, such as "CursorLeft", "F1", etc.) and optionally the widget that currently has the keyboard focus. |
|
Returns the widget that currently has the keyboard focus. This might as well be 0 if no widget has the focus or if the creator of this event could not obtain that information. |
|
Returns the key symbol - a text describing the key, such as "CursorLeft", "F1", "a", "A", etc. |
|
Returns the ID to be returned upon UI::UserInput(). This is the same as the "id" field of the ycpEvent() map. Reimplemented from YEvent. Reimplemented from YEvent. |
|
Constructs a YCP map to be returned upon UI::WaitForEvent(). Reimplemented from YEvent. Reimplemented from YEvent. |
|
|
|
|