InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / KeyboardMapper Object / RemoveMapping Method
The Keys enumeration value that specifies the key sequence to remove the mapping for.
Example
In This Topic
    RemoveMapping Method (KeyboardMapper)
    In This Topic
    Removes a key mapping from the keyboard map. This method should only be used to remove non-extended keys.
    Syntax
    expression.RemoveMapping( _
       ByVal key As Keys _
    ) 
    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.
    Example
    This example removes a key mapping from the keyboard map.
    Sub removeKeyboardMapping()
        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 Ctrl+B key combination to a key
         kbmapping.key = Keys_Control + Keys_B
     
        'Remove the new mapping from the session keyboard map
        ThisIbmTerminal.KeyboardMapper.RemoveMapping kbmapping.key
        
        'Save the keyboard map
        ThisIbmTerminal.KeyboardMapper.SaveAs (path)
        
    End Sub
    See Also