TextCtrl::RemoveSelection shall return false when there is no selection
|Assignee:||Miroslav Fidler||% Done:|
|Target version:||Release 2019.1|
in a CodeEditor instance, filled with text, do that :
- set the cursor with a mouse left click, keeping the mouse button pressed for more than one second
- try to remove a character using backspace button.
the backspace does 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;