fixes #18358, keyboard event handling with FilterDefDialog plugin