Unit 'msegui' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

tkeyevent

[Properties (by Name)] [Methods (by Name)]

Event describing a key press or release on a window

Declaration

Source position: msegui.pas line 3129

type tkeyevent = class(twindowevent)

public

  fkey: keyty;

  

Key code, including modifiers

  fkeynomod: keyty;

  

Key code without the modifier keys

  fchars: msestring;

  

Characters generated by the key event, if any

  fbutton: mousebuttonty;

  

Mouse button associated with the event, if applicable

  fshiftstate: shiftstatesty;

  

State of the modifier keys (shift, ctrl, alt...) at the time of the event

  fposted: Boolean;

  

True if the event was posted programmatically (see TWindow.postkeyevent) instead of coming from the OS

  constructor create();

  property timestamp: LongWord; [r]

  

Time of the event, in microseconds

end;

Inheritance

tkeyevent

  

Event describing a key press or release on a window

|

twindowevent

  

Base event class for asynchronous notifications about a specific window

|

tmseevent

|

tnullinterfacedobject

|

TObject,iunknown

Description

Event describing a key press or release on a window. It reports the pressed key, with and without modifiers, the corresponding characters and the state of the modifier keys.


Documentation generated on: 2026-10-03