SpiceLogic Inc.
                                                                                                     SpiceLogic Inc. Home PageProductsJournalMy AccountHelp DeskContact Us
 
Knowledge base  : .NET Win HTML Editor Control    - Standard Edition
Welcome Guest   Login

Skip Navigation Links. .NET Win HTML Editor Control

Documentation  Documentation

Download   Download the latest version

Back to the home of knowledgebase forum Overriding Key event (i.e. Ctrl+N )

An user   3/21/2009 9:32:36 PM

I have coded the keyboard combination <Ctrl>+<N> to start a ‘New’ file, but the in-built behaviour of this key combination is to open a blank browser window(!), and it overrides my code. Can this be suppressed, please?




- [SpiceLogic Support Technician]   4/29/2009 4:03:00 AM

As, the behaviour is not configurable, we can consider your request for the next release.




Resolution:
- [SpiceLogic Support Technician]   9/18/2009 3:22:04 AM

Dear Steve,
You can use following snippet to override the Control + N
 
   private void htmlEditor1_KeyDown(object sender, EditorKeyEventArgs e)
        {
             if (e.CtrlKey && e.KeyCode == 78)
            {
                e.Cancel = true;
                htmlEditor1.Operations.ClearContents();
            }
        }



Home  || Products  || Journal  || My Account  || HelpDesk  || Contact Us

Website and Software Copyright ©2010, SpiceLogic Inc., All Rights Reserved.