Bug #1858
Updated by Abdelghani Omari almost 6 years ago
Test Case: test case:
in a CodeEditor instance, filled with text, do that :
repeat :
- set the cursor with a mouse left click, keeping the mouse button pressed for more than one second click
- try to remove a character using backspace button.
result :
for more than 10% of case, the backspace does dows not remove the character.
I have investigate this behavior, and i found that TextCtrl::RemoveSelection can return true, even when there is no selection.
RemoveSelection is used in LineEdit::Backspace :
if(IsReadOnly() || RemoveSelection() || cursor == 0) return;
in a CodeEditor instance, filled with text, do that :
repeat :
- set the cursor with a mouse left click, keeping the mouse button pressed for more than one second click
- try to remove a character using backspace button.
result :
for more than 10% of case, the backspace does dows not remove the character.
I have investigate this behavior, and i found that TextCtrl::RemoveSelection can return true, even when there is no selection.
RemoveSelection is used in LineEdit::Backspace :
if(IsReadOnly() || RemoveSelection() || cursor == 0) return;