RemoveMapping Method (KeyboardMapper)
Removes a key mapping from the keyboard map. This method should only be used to remove non-extended keys.
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\Reflection\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