Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
c759733ce6
2 changed files with 6 additions and 5 deletions
  1. +1
    -0
      docs/JUCE changelist.txt
  2. +5
    -5
      src/juce_appframework/gui/components/windows/juce_ComponentPeer.cpp

+ 1
- 0
docs/JUCE changelist.txt View File

@@ -16,6 +16,7 @@ Changelist for version 1.45
- added a critical section option to ReferenceCountedArray
- refactored and added features to the Socket class, replacing it with StreamableSocket (basically the same as the original class), and DatagramSocket.
- refactored the OpenGLComponent, adding new classes OpenGLPixelFormat and OpenGLContext
- A component's KeyListeners are now called before its keyPressed method, so if you want to intercept keys and stop them getting sent to the component, you can add a keylistener and comsume the events.

==============================================================================
Changelist for version 1.44


+ 5
- 5
src/juce_appframework/gui/components/windows/juce_ComponentPeer.cpp View File

@@ -434,11 +434,6 @@ bool ComponentPeer::handleKeyPress (const int keyCode,
{
const ComponentDeletionWatcher deletionChecker (target);
keyWasUsed = target->keyPressed (keyInfo);
if (keyWasUsed || deletionChecker.hasBeenDeleted())
break;
if (target->keyListeners_ != 0)
{
for (int i = target->keyListeners_->size(); --i >= 0;)
@@ -452,6 +447,11 @@ bool ComponentPeer::handleKeyPress (const int keyCode,
}
}
keyWasUsed = target->keyPressed (keyInfo);
if (keyWasUsed || deletionChecker.hasBeenDeleted())
break;
if (keyInfo.isKeyCode (KeyPress::tabKey) && Component::getCurrentlyFocusedComponent() != 0)
{
Component::getCurrentlyFocusedComponent()


Loading…
Cancel
Save