Skip to content

Wrong location of the text cursor in some cases in the Filter Editor #4702

@contribucious

Description

@contribucious

ᴇɴᴠɪʀᴏɴᴍᴇɴᴛ

⚙️ AdGuard version: 7.13 nightly 12 (build 4262, CL 1.11.88)
💻 OS version: Windows 10 Pro 22H2 (OS Build 19045.2965)

👋 Steps to reproduce

  1. Right-click on the AdGuard systray icon > Tools > Filter editor.
  2. Using the advanced filter editor, add this without saving:
example.org##h1
example.org##p
example.org##a
  1. Put your text cursor at the end of the second line (i.e. after the p).
  2. Press Shift + Home to select the line.
  3. Press the Left arrow key and type www..

Expected behavior

example.org##h1
www.example.org##p
example.org##a

Actual behavior

example.org##h1www.
example.org##p
example.org##a

Additional information

Reveal …
Similar problem with the other way around, i.e.:
  • put your text cursor at the end of the second line → put your text cursor at the beginning of the second line;
  • Shift + HomeShift + End;
  • Left arrow key → Right arrow key;
  • unexpectedly arrive at the end of the previous line ✖️ → unexpectedly arrive at the beginning of the next line. ✖️

ℹ️ Expected behavior is the typical result of editors.
↬ Tested on: VS Code, Notepad++, Notepad. Plus on a textarea in both Firefox (113.0.1) and Chrome (113.0.5672.127).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions