KRunner: Handle escape key in history view more gracefully

Alexander Lohnau requested to merge work/unprintable_character_history_view into master

Instead of adding an unprintable character to the UI the history view is closed and the text field it focused.

To prevent unprintable characters like backspace a regex is used, just like we already do in the ResultsView Keys.onPressed slot.

BUG: 433723
FIXED-IN: 5.21.2


Merge request reports