1
Vote

EnableModelessKeyboardInterop so keyboard works in dialogs

description

I just added a EnableModelessKeyboardInterop call to SCSFContrib.CompositeUI.WPF\Workspaces\WindowWorkspace.cs to work around this problem http://channel9.msdn.com/ShowPost.aspx?PostID=339446. Altered code shown below.
Any chance of getting this checked into the trunk?
 
    private Window CreateWindow(object smartPart)
    {
        Debug.Assert(!_windows.ContainsKey(smartPart));
        Window window = new Window();
        ElementHost.EnableModelessKeyboardInterop(window);
        window.Content = smartPart;
 
        window.Closing += delegate(object sender, System.ComponentModel.CancelEventArgs e)
        {
            RaiseSmartPartClosing(e);
        };
 
        window.Closed += delegate
        {
            _windows[smartPart].Content = null;
            _windows.Remove(smartPart);
            InnerSmartParts.Remove(smartPart);
        };
 
        _windows[smartPart] = window;
        return window;
    }

comments

SimonCropp wrote Apr 17, 2008 at 11:26 PM

bump

wrote Feb 14, 2013 at 12:59 AM