Table of Contents

Method ProcessHotKey

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ProcessHotKey(KeyEvent)

This method can be overwritten by view that want to provide accelerator functionality (Alt-key for example).

public override bool ProcessHotKey(KeyEvent kb)

Parameters

kb KeyEvent

Returns

bool

Remarks

Before keys are sent to the subview on the current view, all the views are processed and the key is passed to the widgets to allow some of them to process the keystroke as a hot-key.

For example, if you implement a button that has a hotkey ok "o", you would catch the combination Alt-o here. If the event is caught, you must return true to stop the keystroke from being dispatched to other views.