Table of Contents

Method OnKeyUp

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

OnKeyUp(Key)

Called when a key is released. This method is called from NewKeyUpEvent(Key).

public override bool OnKeyUp(Key key)

Parameters

key Key

Contains the details about the key that produced the event.

Returns

bool

false if the keys up event was not handled. true if no other view should see it.

Remarks

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

Overrides must call into the base and return true if the base returns true.

See for an overview of Terminal.Gui keyboard APIs.