diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-24 11:59:14 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-24 11:59:14 +0200 |
commit | 5da5664bb4cf4fdbbb4a4321eeac54d4dd9c9c4d (patch) | |
tree | 7f463cfe600097b47f9bed278da264756d0b34f0 /src/corelib/fpg_cmdlineparams.pas | |
parent | a42780723829016b1a36dffbedcab667e41a7dd0 (diff) | |
download | fpGUI-5da5664bb4cf4fdbbb4a4321eeac54d4dd9c9c4d.tar.xz |
reworked TfpgWidget.MsgKeyPress() to correctly handle keyboard shortcuts.
processing order is now as follows;
- widget that keypress occured it trys to handle the event.
- then to keyboard shortcut processing for the widget's children
- then work back towards the top-level form giving chance for
keyboard navigation (tabstop) processing. eg: pressing Tab key
- then let the top level form to keyboard shortcut processing
eg: allowing MainMenu to process the event.
- then allow the top level for to process OnKeyPress if such an
event handler is implemented.
- then if the top level form is not the MainForm, and the current
top level form is not shown model, allow the application.mainform
to process the keyshortcut in it's main menu.
Diffstat (limited to 'src/corelib/fpg_cmdlineparams.pas')
0 files changed, 0 insertions, 0 deletions