Skip to content

Recover search string after accessing search history #14174

@Cerno-b

Description

@Cerno-b

Description of the Issue

I think it would be store the contents of the search line edit, in case someone accidentally presses the down key while writing a search term.

Tested in 8.5.2

Current Behavior

  1. Enter search text
  2. Press down key (search text is replaced by history entry)
  3. Press up (nothing changes, original search text is lost)

This can be pretty annoying if you try to write a complex regex term only to accidentally hit arrow up instead of arrow left so you have to start over.

Expected Behavior

  1. Enter search text (draft is stored somewhere)
  2. Press arrow down
  3. Press arrow up (draft is restored, only if going up from the first history element)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions