summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-20 13:03:22 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-09-20 13:03:22 +0200
commit51d6e695e7c311afc3cbe9bc4ac17ba405388d09 (patch)
tree6ff88f92d81ff80c27f4e03641a958bf33308688 /src/gui
parent7fdb64b3d30f2efa05b69f860802a24c947b3d0d (diff)
downloadfpGUI-51d6e695e7c311afc3cbe9bc4ac17ba405388d09.tar.xz
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.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_form.pas1
1 files changed, 1 insertions, 0 deletions
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;