Browse Source

Avoided spacer components in a ToolBar getting keyboard focus

tags/2021-05-28
jules 9 years ago
parent
commit
58ca0673c4
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      modules/juce_gui_basics/widgets/juce_Toolbar.cpp
  2. +1
    -1
      modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h

+ 1
- 0
modules/juce_gui_basics/widgets/juce_Toolbar.cpp View File

@@ -33,6 +33,7 @@ public:
fixedSize (fixedSize_), fixedSize (fixedSize_),
drawBar (drawBar_) drawBar (drawBar_)
{ {
setWantsKeyboardFocus (false);
} }
bool getToolbarItemSizes (int toolbarThickness, bool /*isToolbarVertical*/, bool getToolbarItemSizes (int toolbarThickness, bool /*isToolbarVertical*/,


+ 1
- 1
modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h View File

@@ -104,7 +104,7 @@ public:
@see contentAreaChanged @see contentAreaChanged
*/ */
const Rectangle<int>& getContentArea() const noexcept { return contentArea; }
Rectangle<int> getContentArea() const noexcept { return contentArea; }
//============================================================================== //==============================================================================
/** This method must return the size criteria for this item, based on a given toolbar /** This method must return the size criteria for this item, based on a given toolbar


Loading…
Cancel
Save