In the AdvRichEditor i have an exception if you have an the following conditions when using keyboard only
- empty editor
- Press enter key
- Press left arrow key
The exception is in module AdvRichEditorBase.pas and function:
function TAdvRichEditorBase.PrevChar(SelectionUpdate: boolean = true): boolean;
It fails in Line 10317 ch := CharInStr fails due to Caret.Element
if Caret.CharIndex > 0 then
begin
Result := true;
ch := CharInStr( (Caret.Element as TTextElement).Text, Caret.CharIndex);
s := Ord(ch);
if (s and $D800 = $D800) then
Caret.CharIndex := Caret.CharIndex - 2
else
Caret.CharIndex := Caret.CharIndex - 1;
Refresh;
end
Anyone seen and fixed this issue ?