JX Application Framework
|
#include <JTEKeyHandler.h>
Public Member Functions | |
JTEKeyHandler () | |
virtual | ~JTEKeyHandler () |
virtual bool | HandleKeyPress (const JUtf8Character &c, const bool selectText, const JTextEditor::CaretMotion motion, const bool deleteToTabStop)=0 |
virtual void | Initialize (JTextEditor *te) |
Protected Member Functions | |
JTextEditor * | GetTE () const |
void | InsertKeyPress (const JUtf8Character &c) |
void | BackwardDelete (const bool deleteToTabStop, JString *text=nullptr) |
void | ForwardDelete (const bool deleteToTabStop, JString *text=nullptr) |
void | MoveCaretVert (const JInteger deltaLines) |
Base class to support processing key presses sent to JTextEditor.
JTEKeyHandler::JTEKeyHandler | ( | ) |
|
virtual |
|
protected |
|
protected |
|
inlineprotected |
|
pure virtual |
Implemented in JTEDefaultKeyHandler, JVIKeyHandler, and JXVIKeyHandler.
|
virtual |
This is necessary because the old key handler is deleted in JTextEditor::SetKeyHandler(), after the jnew one is constructed.
Reimplemented in JVIKeyHandler, and JXVIKeyHandler.
|
protected |
|
protected |