Skip to main content
A newer version of this page is available. .

RichEditControl.RemoveShortcutKey(Keys, Keys, Boolean) Method

Removes a command shortcut for all RichEdit views.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v19.1.dll

Declaration

public void RemoveShortcutKey(
    Keys key,
    Keys modifier,
    bool updateToolTip
)

Parameters

Name Type Description
key Keys

A Keys enumeration member specifying a shortcut key.

modifier Keys

A Keys enumeration member specifying a modifier key.

updateToolTip Boolean

true, to modify a tooltip of the BarItem to which a command is assigned to remove a reference to the shortcut key; otherwise, false.

Remarks

The RemoveShortcutKey method override enables you to modify a tooltip of the bar item (the BarItem.SuperTip property) in the RichEdit UI so that it displays the correct shortcut information. To do this, set the updateToolTip parameter to true.

Note that the RichEditControl’s shortcuts should be removed after the control is initialized (e.g. in Window.Loaded event handler).

To assign a command shortcut, use the RichEditControl.AssignShortcutKeyToCommand method.

See Also