Update FilterDefDialog.js

The keypress event should only be used when the pressed key also results in a character, such as the letters A-Z and so on. The Enter-key should trigger it.