This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 145285 [details] Alternative shortcut not suggested correctly When I add an alternative shortcut, the shortcuts which are already used are not called out in the call out displayed below. However, such an alternative shortcut is not assigned at all to the new action Steps to reproduce: Try to add alternative key CTRL+M to Cut action. It says that there is is not used anywhere else. See attached picture Build NetBeans Dev 201402130001
Note that before I click on OK, if I happen to click elsewhere, then the "Conflicting Dialog Box" appears to tell me that there is another place where this key is used. However, if I directly click OK, then this doesnt show up.
reproducible, nice catch, thanks
Sadly a known bug; because of OK handling in options, I don't get the event early enough to prevent dialog close - see issue #236458. Please always press ENTER when editing shortcut line
Moving to platform. During apply/OK handling, the individual Panels have no chance to react and invalidate themselves - e.g. in this situation, where the user entry is validated upon field exit. There are other situation which demand that the user input is validated only after completion (moving off text field, closing a choice box...). The execution sequence should permit the panels to complete field validation, possibly raising an invalid flag, which should then interrupt the apply process. I recommend: * postpone the actual dialog close (enqueue an event in EDT), which allows the current queued event to complete and possibly raise the flag * check validity of the dialogs * only if everything is still OK, close the dialog or apply changes.