[QoL request] don't close component scripting windows when pressing enter

Hello folks, dear IA wizards.

This is driving me nuts.
When you create a new method/message handler on a component, and you press enter... it closes the window. I do it EVERY DAMN TIME.

Please make it stop.

Hmm. The 'Enter' key is used as the confirm for the 'default button' state, which is marked as the OK button. In theory, you could tell the system not to use Enter as the 'default button' submit key, with sufficient hacking of Swing internals (see AppContext, DefaultLookup; I couldn't get a quick test to work). Probably a non-starter.

As for 'fixing' it first party - you're honestly the first person I've heard complain about it, so we'd probably want to collect more feedback before we did change anything.

1 Like

I should mention I'm talking about pressing enter after entering the name of the method/handler.
It's such a reflex from me to press enter after entering text like this that I have to reopen the window every time...

1 Like