Fcitx
|
Public Member Functions | |
KeyEventBase (EventType type, InputContext *context, Key rawKey, bool isRelease=false, int time=0) | |
KeyEventBase (const KeyEventBase &)=default | |
Key | key () const |
Normalized key event. More... | |
void | setKey (const Key &key) |
It will automatically be called if input method layout does not match the system keyboard layout. More... | |
void | setRawKey (const Key &key) |
It is designed for faking the key event. More... | |
void | setForward (bool forward) |
It is designed for overriding the key forward option. More... | |
Key | origKey () const |
Key event regardless of keyboard layout conversion. More... | |
Key | rawKey () const |
Key event after layout conversion. More... | |
bool | isRelease () const |
int | time () const |
bool | forward () const |
If true, the key that produce character will commit a string. More... | |
bool | isVirtual () const |
Whether this key event is derived from a virtual keyboard. More... | |
![]() | |
InputContextEvent (InputContext *context, EventType type) | |
InputContext * | inputContext () const |
![]() | |
Event (EventType type) | |
EventType | type () const |
Type of event, can be used to decide event class. More... | |
void | accept () |
bool | accepted () const |
Return value used by Instance::postEvent. More... | |
virtual bool | filtered () const |
Whether a event is filtered by handler. More... | |
bool | isInputContextEvent () const |
A helper function to check if a event is input context event. More... | |
Protected Attributes | |
Key | key_ |
Key | origKey_ |
Key | rawKey_ |
bool | isRelease_ |
int | time_ |
bool | forward_ = false |
![]() | |
InputContext * | ic_ |
![]() | |
EventType | type_ |
bool | accepted_ = false |