This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
Selecting initial characters and pressing .
or invalid character for the filter inserts wrong charaters at FilteredLineEdit
and FilteredTextEdit
#14
Labels
Bugs at
FilteredLineEdit
andFilteredTextEdit
:+0f
mode. Example onFilteredLineEdit
:42
, select4
, press.
, makestext = .2
.f
mode. Example onFilteredLineEdit
:42
, select4
, press.
, makestext = 222
.+0f
orf
mode. Example onFilteredLineEdit
:42
, select4
, press invalid character by the filter, makestext = 222
.The desired behaviour would be:
.
: replace selected text by0.
.I think this is hard (or impossible) to solve because:
_on_text_changed
is called, the selection is already lost, so it cannot be known what was selected.old_text
andnew_text
and selection only applies to one character, you cannot distinguish between that selection or a simple deletion of one character.get_selection_from_column
andget_selection_to_column
return-1
(error), so they cannot be used either.If this is not solved, the user can set
FilteredLineEdit.selecting_enabled = false
andFilteredTextEdit.selecting_enabled = false
. This have also disadvantages, you can't select text and copy it, you would have to implement some button.The text was updated successfully, but these errors were encountered: