#include <BCKeyboardEvent.h>

Public Member Functions | |
| BCKeyboardEvent (const WebCore::String &aText, const WebCore::String &aUnmodifiedText, const WebCore::String &aKeyIdentifier, bool bIsKeyUp, bool bShiftKey, bool bCtrlKey, bool bAltKey, bool bMetaKey, bool bIsAutoRepeat, int aVKey) | |
| virtual WebCore::String | text () const |
| returns the key, in lower case for the letters. | |
| virtual WebCore::String | unmodifiedText () const |
| returns the key unmodified. | |
| virtual WebCore::String | keyIdentifier () const |
| returns a string for all the keys. | |
| virtual bool | isKeyUp () const |
| whether key is up or down (release or pressed). | |
| virtual bool | isAutoRepeat () const |
| autorepeat | |
| virtual void | setIsAutoRepeat (bool) |
| autorepeat | |
| virtual int | WindowsKeyCode () const |
| Get the windows keycode. | |
| virtual int | setWindowsKeyCode (int code) const |
| Get the windows keycode. | |
| virtual int | virtualKeyCode () const |
| returns a VK for a key. | |
| virtual bool | isKeypad () const |
| isKeyPad | |
| virtual BIEvent * | clone () const |
| clone the object | |
| virtual bool | shiftKey () const |
| virtual bool | ctrlKey () const |
| virtual bool | altKey () const |
| virtual bool | metaKey () const |
Protected Attributes | |
| WebCore::String | m_text |
| WebCore::String | m_unmodifiedText |
| WebCore::String | m_keyIdentifier |
| bool | m_isKeyUp |
| bool | m_autoRepeat |
| int | m_BALVirtualKeyCode |
| bool | m_isKeypad |
| BCKeyboardEvent::BCKeyboardEvent | ( | const WebCore::String & | aText, | |
| const WebCore::String & | aUnmodifiedText, | |||
| const WebCore::String & | aKeyIdentifier, | |||
| bool | bIsKeyUp, | |||
| bool | bShiftKey, | |||
| bool | bCtrlKey, | |||
| bool | bAltKey, | |||
| bool | bMetaKey, | |||
| bool | bIsAutoRepeat, | |||
| int | aVKey | |||
| ) |
| WebCore::String BCKeyboardEvent::text | ( | ) | const [virtual] |
returns the key, in lower case for the letters.
some keys can have no corresponding text (Enter, Arrow, etc.)
Implements BAL::BIKeyboardEvent.
| WebCore::String BCKeyboardEvent::unmodifiedText | ( | ) | const [virtual] |
returns the key unmodified.
It means in lower case or upper case, according to the shift/capslock key
Implements BAL::BIKeyboardEvent.
| WebCore::String BCKeyboardEvent::keyIdentifier | ( | ) | const [virtual] |
returns a string for all the keys.
It is a set over the text() method, completed with string like "Enter", for the Enter key, and so on.
Implements BAL::BIKeyboardEvent.
| bool BCKeyboardEvent::isKeyUp | ( | ) | const [virtual] |
| bool BCKeyboardEvent::isAutoRepeat | ( | ) | const [virtual] |
| void BCKeyboardEvent::setIsAutoRepeat | ( | bool | ) | [virtual] |
| int BCKeyboardEvent::WindowsKeyCode | ( | ) | const [virtual] |
| int BCKeyboardEvent::virtualKeyCode | ( | ) | const [virtual] |
returns a VK for a key.
It is important to note that some keys can have no VK. VKs are mainly used for function (F1, F2, etc), navigation (Arrow, etc.). For keys which purpose is to be written, use the text method, to get the resulting text.
Implements BAL::BIKeyboardEvent.
| bool BCKeyboardEvent::isKeypad | ( | ) | const [virtual] |
| BIEvent * BCKeyboardEvent::clone | ( | ) | const [virtual] |
| virtual bool BC::BCKeyboardEvent::shiftKey | ( | ) | const [inline, virtual] |
Reimplemented from BCCommonInputEventData.
| virtual bool BC::BCKeyboardEvent::ctrlKey | ( | ) | const [inline, virtual] |
Reimplemented from BCCommonInputEventData.
| virtual bool BC::BCKeyboardEvent::altKey | ( | ) | const [inline, virtual] |
Reimplemented from BCCommonInputEventData.
| virtual bool BC::BCKeyboardEvent::metaKey | ( | ) | const [inline, virtual] |
Reimplemented from BCCommonInputEventData.
WebCore::String BC::BCKeyboardEvent::m_text [protected] |
WebCore::String BC::BCKeyboardEvent::m_unmodifiedText [protected] |
WebCore::String BC::BCKeyboardEvent::m_keyIdentifier [protected] |
bool BC::BCKeyboardEvent::m_isKeyUp [protected] |
bool BC::BCKeyboardEvent::m_autoRepeat [protected] |
int BC::BCKeyboardEvent::m_BALVirtualKeyCode [protected] |
bool BC::BCKeyboardEvent::m_isKeypad [protected] |