Table of Contents

Method ProcessColdKey

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ProcessColdKey(KeyEvent)

This method can be overwritten by views that want to provide accelerator functionality (Alt-key for example), but without interefering with normal ProcessKey behavior.

public override bool ProcessColdKey(KeyEvent keyEvent)

Parameters

keyEvent KeyEvent

Contains the details about the key that produced the event.

Returns

bool

Remarks

After keys are sent to the subviews on the current view, all the view are processed and the key is passed to the views to allow some of them to process the keystroke as a cold-key.

This functionality is used, for example, by default buttons to act on the enter key. Processing this as a hot-key would prevent non-default buttons from consuming the enter keypress when they have the focus.