Skip to content

ListBox: Shift+Home and Shift+End not working in filter textbox #19103

@MaSch0212

Description

@MaSch0212

Describe the bug

Normally you can select all text left of the cursor with Shift + Home and right of the cursor with Shift + End when being inside a textbox. This shortcut does not work as expected in the filter textbox of a listbox.

Instead of selecting the text, only the cursor is moved without any selection.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

Not sure if Home and End should even do anything in the textbox as there are event handlers that change the option focus.

Reproducer

https://primeng.org/listbox#filter

Environment

Windows 11

Angular version

probably 20.x

PrimeNG version

v20

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to https://primeng.org/listbox#filter
  2. type in some text in the filter
  3. Press Shift + Home --> cursor is moved to the start without selection

Expected behavior

Either Home and End should do nothing in the filter textbox as they focus list items or Shift + Home and Shift + End should select text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: StaleIssue or pull request is inactivity and unfortunately it will be *closed* if there is no responseStatus: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions