Table of Contents

Method NewKeyUpEvent

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

NewKeyUpEvent(Key)

If the view is enabled, processes a new key up event and returns true if the event was handled. Called before NewKeyDownEvent(Key).

public bool NewKeyUpEvent(Key keyEvent)

Parameters

keyEvent 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 calls OnKeyUp(Key), which is cancellable.

See for an overview of Terminal.Gui keyboard APIs.