Skip to content

Code editor scrolls to show the caret when it's window loses focus #89285

Closed
@mieldepoche

Description

@mieldepoche

Tested versions

  • occurs in v4.3.dev4.official [df78c06]
  • does not occur in v4.2.1.stable.official [b09f793]

System information

linux

Issue description

  • when
    1. the focus leaves the window the code editor is in (either the full editor or the code editor in its own window), and
    2. the code editor is focused
  • then the code editor scrolls to make the edition caret visible if it's outside the view
simplescreenrecorder-2024-03-08_16.41.44.mp4

Steps to reproduce

  1. get a long gdscript file
  2. put the caret in a line and scroll it outside of the screen
  3. give the focus to another os window
  4. the code editor should scroll on its own

Minimal reproduction project (MRP)

any

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions