From 51d6e695e7c311afc3cbe9bc4ac17ba405388d09 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Mon, 20 Sep 2010 13:03:22 +0200 Subject: KeyPress events is now distributed to Widgets, then Form, then fpgApplication * KeyPress is first offered to the focused widget * If not consumed, then to parent, then parent.parent etc.. * if still not consumed, then to top level form * if still not consumed, then to fpgApplication If anywhere in the sequence Consumed = True, then distribution of that event is stopped. This is the basic foundation required for various keyboard shortcut handling, actions shortcut handling, and especially in menus. The latter still needs some work though. --- src/gui/fpg_form.pas | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui') diff --git a/src/gui/fpg_form.pas b/src/gui/fpg_form.pas index 19f8c3e6..0322050a 100644 --- a/src/gui/fpg_form.pas +++ b/src/gui/fpg_form.pas @@ -133,6 +133,7 @@ type property OnEnter; property OnExit; property OnHide; + property OnKeyPress; property OnMouseDown; property OnMouseEnter; property OnMouseExit; -- cgit v1.2.3-70-g09d2