Main windows closes on ESC key

Topics: Questions
Feb 7, 2013 at 7:36 AM
Edited Feb 7, 2013 at 7:37 AM
Hello,

my main window closes when I hit the ESC key. How can I disable this. My main window has the following constructor:
public MainWindow(MainViewModel mainViewModel)
            : base(mainViewModel, DataWindowMode.Custom, defaultButton: DataWindowDefaultButton.None)
I have no buttons on this window.

Thanks for any info,
G.
Coordinator
Feb 7, 2013 at 12:38 PM
Good question. We implemented that because it's a "standard" behavior of windows in ms windows. But, you can override OnKeyDown. If Escape, set e.Handled to true.
Aug 1, 2013 at 2:56 PM
Please provide a property to indicates close on escape or not, that can be set in xaml.
thanks.
Coordinator
Aug 1, 2013 at 8:03 PM
Please add the feature request here:

https://catelproject.atlassian.net/secure/Dashboard.jspa