Bug #1858

TextCtrl::RemoveSelection shall return false when there is no selection

Added by Abdelghani Omari about 6 years ago. Updated over 5 years ago.

Status:ApprovedStart date:03/26/2018
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:CtrlLibSpent 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;

Text.cpp.patch Magnifier (311 Bytes) Abdelghani Omari, 03/26/2018 06:11 PM

History

#1 Updated by Abdelghani Omari about 6 years ago

  • Target version set to Release 2018.1

#2 Updated by Zbigniew Rebacz about 6 years ago

  • Target version changed from Release 2018.1 to Release 2019.1

#3 Updated by Abdelghani Omari almost 6 years ago

  • Status changed from Patch ready to Approved

#4 Updated by Abdelghani Omari over 5 years ago

  • Description updated (diff)
  • Status changed from Approved to Patch ready

#5 Updated by Miroslav Fidler over 5 years ago

  • Status changed from Patch ready to Approved

thanks

Also available in: Atom PDF