Share via


KeyBinding.Clear Method (Word)

Removes the specified key binding from the KeyBindings collection and resets a built-in command to its default key assignment.

Syntax

expression .Clear

expression A variable that represents a KeyBinding object.

Example

This example removes the ALT+F1 key assignment from the Normal template.

CustomizationContext = NormalTemplateFindKey(BuildKeyCode(Arg1:=wdKeyAlt, Arg2:=wdKeyF1)).Clear

See Also

Concepts

KeyBinding Object Members

KeyBinding Object