Table of Contents

Method NewKeyUpEvent

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

NewKeyUpEvent(Key)

If the view is enabled, raises the related key up events on the view, and returns true if the event was handled.

public bool NewKeyUpEvent(Key key)

Parameters

key Key

Returns

bool

true if the event was handled.

Remarks

Not all terminals support key distinct down/up notifications, Applications should avoid depending on distinct KeyUp events.

If the view has a sub view that is focused, NewKeyUpEvent(Key) will be called on the focused view first.

If the focused sub view does not handle the key press, this method raises OnKeyUp(Key)/ KeyUp to allow the view to pre-process the key press.

See for an overview of Terminal.Gui keyboard APIs.