JX Application Framework
|
#include <JXVIKeyHandler.h>
Public Member Functions | |
JXVIKeyHandler () | |
~JXVIKeyHandler () override | |
bool | HandleKeyPress (const JUtf8Character &key, const bool selectText, const JTextEditor::CaretMotion motion, const bool deleteToTabStop) override |
void | Initialize (JTextEditor *te) override |
![]() | |
JVIKeyHandler () | |
~JVIKeyHandler () override | |
![]() | |
JTEKeyHandler () | |
virtual | ~JTEKeyHandler () |
Additional Inherited Members | |
![]() | |
enum | Mode { kTextEntryMode , kCommandMode , kCommandLineMode , kBufferNameMode } |
enum | { kNamedCutBufferOffset = '0' , kNamedCutBufferCount = 'z' - kNamedCutBufferOffset + 1 } |
![]() | |
Mode | GetMode () const |
void | SetMode (const Mode mode) |
JSize | GetOperationCount () const |
bool | GetPrevCharacter (JUtf8Character *c) const |
const JString & | GetCommandLine () const |
void | AppendToCommandLine (const JUtf8Character &key) |
void | ClearKeyBuffers () |
bool | PrehandleKeyPress (const JUtf8Character &key, bool *result) |
void | YankLines (const JStringMatch &match, const bool del) |
void | YankToEndOfLine (const bool del, const bool ins) |
CutBuffer * | GetCutBuffer (const JRegex &r) const |
CutBuffer * | GetCutBuffer (const JRegex &r, const JStringMatch &match) const |
bool | IsEndCharacterInWord () const |
![]() | |
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) |
Class to implement vi keybindings.
JXVIKeyHandler::JXVIKeyHandler | ( | ) |
|
override |
|
overridevirtual |
Reimplemented from JVIKeyHandler.
|
overridevirtual |
This is necessary because the old key handler is deleted in JTextEditor::SetKeyHandler(), after the jnew one is constructed.
Reimplemented from JVIKeyHandler.