Skip to content

Draft: klipper: clear search field after a reasonable amount of time

Fushan Wen requested to merge work/fuf/clearfield into master

Reason for the change

When a user opens the klipper popup menu, they might want to get the latest unfiltered result instead of the last search result because the clipboard stores many temporary entries, so any filtered result is only useful for a certain period.

This makes the search field cleared after the menu is closed. Before the search field is cleared, a reasonable amount of time is given to keep the search result in case the menu is closed accidentally.

Test plan

  1. Open the klipper popup menu
  2. Search something
  3. Close the klipper popup menu and wait 10s
  4. Reopen the klipper popup menu
  5. The search field is cleared

Screenshots or screen recordings

Bugs fixed

Merge request reports

Loading