InfoConnect API Guide
Attachmate.Reflection.Emulation.Common Namespace / KeyboardMapper Class / RemoveMapping Method / RemoveMapping(Keys,Boolean) Method
The key sequence to remove the mapping for.
Indicates whether this key is an extended key. For IBM Enhanced 101- and 102-key keyboards, extended keys are the right ALT and the right CTRL keys on the main keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN, and arrow keys to the left of the numeric keypad; and the slash (/) and ENTER keys in the numeric keypad.
Example


In This Topic
    RemoveMapping(Keys,Boolean) Method
    In This Topic
    Removes a key mapping from the keyboard map.
    Syntax
    'Declaration
     
    
    Public Overloads Sub RemoveMapping( _
       ByVal key As Keys, _
       ByVal isExtendedKey As Boolean _
    ) 
    'Usage
     
    
    Dim instance As KeyboardMapper
    Dim key As Keys
    Dim isExtendedKey As Boolean
     
    instance.RemoveMapping(key, isExtendedKey)
    public void RemoveMapping( 
       Keys key,
       bool isExtendedKey
    )

    Parameters

    key
    The key sequence to remove the mapping for.
    isExtendedKey
    Indicates whether this key is an extended key. For IBM Enhanced 101- and 102-key keyboards, extended keys are the right ALT and the right CTRL keys on the main keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN, and arrow keys to the left of the numeric keypad; and the slash (/) and ENTER keys in the numeric keypad.
    Example
    private IUtsTerminal terminal;
    private IKeyboardMapper mapper;
                
    public void RemoveMap(Keys key)
    {
       if(terminal != null)
       {
          mapper = terminal.KeyboardMapper;
          mapper.RemoveMapping(key,true);
       }
       else
          Console.Writeline("No terminal exists.");
    }
    See Also