diff options
author | networkException <git@nwex.de> | 2022-07-10 12:02:19 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-10 12:20:02 +0200 |
commit | 710fb11c730fd38d748e6b2396353a040389b71c (patch) | |
tree | fb5d42239a723c076db6b62051163cf97fc69ea3 /Base/usr | |
parent | 071b92e920f49783973619f8edd8877b6754d75f (diff) | |
download | serenity-710fb11c730fd38d748e6b2396353a040389b71c.zip |
LibGUI: Allow deleting text editor indent selections in non tab cases
Since 00f51d42d2aeb44ec4813ca13be787c2f5ca55ff we would not allow the
deletion for a selection by typing if it would match the conditions to
indent on pressing tab.
As any single line TextEditor would always match the indent conditions,
it was impossible to replace selected text by typing in a TextBox,
PasswordBox or UrlBox.
A missing return, as pointed out in https://github.com/SerenityOS/serenity/pull/13269#discussion_r900866416
was the cause for the additional checks in
TextEditor::insert_at_cursor_or_replace_selection, described in https://github.com/SerenityOS/serenity/pull/13269#discussion_r901009457
With the early return in place the additional checks are not aiding with
the indented behavior but cause the regression described above.
This patch removes the unnecessary conditions.
Diffstat (limited to 'Base/usr')
0 files changed, 0 insertions, 0 deletions