We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm having trouble when using G4P with multiple windows. In my program I have the following code to prevent the escape key from closing the application. This works fine as long as I do not open a new window.
key = 0;
However, when opening a new window, pressing the escape key now closes the application.
The code for the window opener is something like
new_win = new GWindow(this, "title", x, y, w, h, false, JAVA2D);
If I change the action on close to KEEP_OPEN the escape key still closes the application but the window can't be closed as intended with the close button.
I guess that opening a new window makes keyboard presses to another call function within the new window/applet or something? Is there a way to prevent the escape key from closing the application when a new window has been opened? (Using MS Windows enviroment)