InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / KeyboardMapper Object / RemoveMapping_2 Method
The Keys enumeration value that specifies 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 section of the keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN, and arrow keys in the clusters to the left of the numeric keypad; and the slash (/) and ENTER keys in the numeric keypad.
Example
In This Topic
    RemoveMapping_2 Method (KeyboardMapper)
    In This Topic
    Removes a key mapping from the keyboard map.
    Syntax
    expression.RemoveMapping_2( _
       ByVal key As Keys, _
       ByVal isExtendedKey As Boolean _
    ) 
    where expression is a variable that represents a KeyboardMapper Object

    Parameters

    key
    The Keys enumeration value that specifies 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 section of the keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN, and arrow keys in the clusters to the left of the numeric keypad; and the slash (/) and ENTER keys in the numeric keypad.
    Example
    This example removes an extended key mapping from the keyboard map.
    'This example removes an extended key mapping from the keyboard map
    Sub removeKeyboardMapping2()
        Dim kbmapping As KeyboardMapping
        Dim sequence As InputMapActionSequence
        Dim action As InputMapAction
        Dim path As String
     
        path = Environ$("USERPROFILE") & "\Documents\Micro Focus\InfoConnect\Keyboard Maps\" & "myKeyboardMap.xkb"
      
        Set kbmapping = New KeyboardMapping
        
        'Assign the key
         kbmapping.key = Keys_RMenu
     
        'Remove the key mapping from the session keyboard map
        ThisIbmTerminal.KeyboardMapper.RemoveMapping_2 kbmapping.key, True
            
        ThisIbmTerminal.KeyboardMapper.SaveAs (path)
    End Sub
    See Also