(svn r25652) -Fix: Improve text caret movement for complex scripts.

This commit is contained in:
michi_cc
2013-08-05 20:35:27 +00:00
parent 33f3cf3a5d
commit e7dc14b25a
10 changed files with 238 additions and 13 deletions

View File

@@ -14,6 +14,7 @@
#include "string_type.h"
#include "strings_type.h"
#include "string_base.h"
/**
* Return values for Textbuf::HandleKeypress
@@ -61,6 +62,8 @@ struct Textbuf {
void UpdateSize();
private:
StringIterator *char_iter;
bool CanDelChar(bool backspace);
WChar GetNextDelChar(bool backspace);
void DelChar(bool backspace);
@@ -69,6 +72,7 @@ private:
bool CanMoveCaretRight();
WChar MoveCaretRight();
void UpdateStringIter();
void UpdateWidth();
void UpdateCaretPosition();
};