neilcsmith-net commented on PR #9652:
URL: https://github.com/apache/netbeans/pull/9652#issuecomment-6018004276

   Yes, there's definitely something weird with the look of the last push on my 
system -
   
   <img width="640" height="360" alt="Screenshot from 2026-10-06 14-13-32" 
src="https://github.com/user-attachments/assets/2483d787-7cd3-42a8-9967-a72a0fb16d34";
 />
   
   I would suggest reverting to your previous iteration, but with `exit` as the 
default value. eg. 
   
   ```java
               Object exit = bundle.getString("CTL_ExitConfirmationExit");
               Object cancel = bundle.getString("CTL_ExitConfirmationCancel");
               NotifyDescriptor descriptor = new NotifyDescriptor(
                       bundle.getString("MSG_ExitConfirmation"),
                       bundle.getString("TTL_ExitConfirmation"),
                       NotifyDescriptor.YES_NO_OPTION,
                       NotifyDescriptor.QUESTION_MESSAGE,
                       new Object[] { exit, cancel },
                       exit);
               Object choice = DialogDisplayer.getDefault().notify(descriptor);
               return exit.equals(choice);
   ```
   
   Having `Cancel` as default works strangely - it's highlighted but pressing 
`Enter` still exits (as it should).  This feels like a disconnect between 
keyboard usage of `Enter` and `Escape`, and what you can see on screen.
   
   I think it might be better to default to disabled for the coming release as 
well.  We can consider enabling by default at a later date.
   
   Had a look through other registered `@OnStop` handlers and not sure there's 
any but the running tasks one that will also show.  Having both in that 
scenario is probably OK.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to