diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2010-08-18 22:13:21 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2010-08-18 22:13:21 +0200 |
commit | c65cc6d7f0b645977e759824a4e7dc89f4445863 (patch) | |
tree | 13876739d8215ed20814ec184ebb875fdd84f7e4 | |
parent | a33aa25be6f67043ab587741f4ce28377d5584fb (diff) | |
download | fpGUI-c65cc6d7f0b645977e759824a4e7dc89f4445863.tar.xz |
Popup Menu: fixes last selected item still focused bug.
* When you selected a menu item, and then later open that popup menu again,
that last selected item has focus. Now that focus is reset when the user
selected a menu item.
Another loooong overdue bug fix.
-rw-r--r-- | src/gui/fpg_menu.pas | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/fpg_menu.pas b/src/gui/fpg_menu.pas index 2815d84d..452299a5 100644 --- a/src/gui/fpg_menu.pas +++ b/src/gui/fpg_menu.pas @@ -768,7 +768,10 @@ begin op.Close; op := op.OpenerPopup; end; + // notify menubar that we clicked a menu item + OpenerMenuBar.FClicked := False; VisibleItem(FFocusItem).Click; + FFocusItem := -1; end; { if/else } // if OpenerMenuBar <> nil then |