InfoConnect for Unisys
RemoveMapping(Keys) Method
Example 


The key mapping to remove.
Removes a key mapping from the keyboard map.
Syntax
'Declaration
 
Public Overloads Sub RemoveMapping( _
   ByVal key As Keys _
) 
'Usage
 
Dim instance As KeyboardMapper
Dim key As Keys
 
instance.RemoveMapping(key)
public void RemoveMapping( 
   Keys key
)

Parameters

key
The key mapping to remove.
Remarks
Use this method only to remove non-extended keys.
Example
private IUtsTerminal terminal;
private IKeyboardMapper mapper;
            
public void RemoveMap(Keys key)
{
   if(terminal != null)
   {
      mapper = terminal.KeyboardMapper;
      mapper.RemoveMapping(key);
   }
   else
      Console.Writeline("No terminal exists.");
}
See Also