Bug #1858
TextCtrl::RemoveSelection shall return false when there is no selection
Status: | Approved | Start date: | 03/26/2018 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | CtrlLib | Spent time: | - | |
Target version: | Release 2019.1 |
Description
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
- try to remove a character using backspace button.
result :
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;
History
#1 Updated by Abdelghani Omari about 7 years ago
- Target version set to Release 2018.1
#2 Updated by Zbigniew Rebacz about 7 years ago
- Target version changed from Release 2018.1 to Release 2019.1
#3 Updated by Abdelghani Omari about 7 years ago
- Status changed from Patch ready to Approved
#4 Updated by Abdelghani Omari over 6 years ago
- Description updated (diff)
- Status changed from Approved to Patch ready