Home Dashboard Directory Help

Way to prevent the Enter key from closing a Modal Window by cte00


 as Won't Fix Help for as Won't Fix

Sign in
to vote
Type: Suggestion
ID: 709511
Opened: 11/29/2011 3:52:54 AM
Access Restriction: Public


Whenever the Enter key is pressed while in a Modal Window, the Modal Window closes. Therefore, it will not execute any custom code that an OK button is meant to run. At the same time, there may be a need to prevent this window from closing, i.e. when conditions do not meet the OK button's _CanExecute() method.

There seems to be a a way to catch the window Closing event, but there is no way to prevent the modal window from closing. Setting the CancelEventArgs.Cancel = True as mentioned in the link below does not stop the window from closing.
Sign in to post a comment.
Posted by Microsoft on 1/16/2012 at 3:52 PM
We are closing this for now. If you have more data or information to provide, feel free to reactivate this bug.
Posted by Microsoft on 12/13/2011 at 3:44 PM
The fix will be available in the next release of LightSwitch. In the interim, there is a workaround posted to the LightSwitch forum that may address your issue: http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/174264d3-f094-46e5-b5a7-6a606916070d.
Posted by cte00 on 12/7/2011 at 10:58 PM
Seeing that this is fixed, is there a work around?

Or will fix be made available through an update? In which case, are we expecting an update in the near future?
Posted by cte00 on 11/30/2011 at 10:04 PM
Issue has been explored in this forum thread:
Sign in to post a workaround.