mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor clean-ups.
This commit is contained in:
parent
739e8ffba0
commit
c17a72e5b1
3 changed files with 70 additions and 70 deletions
|
|
@ -187,7 +187,7 @@ bool ComponentPeer::handleKeyPress (const int keyCode, const juce_wchar textChar
|
|||
{
|
||||
const WeakReference<Component> deletionChecker (target);
|
||||
|
||||
if (const Array <KeyListener*>* const keyListeners = target->keyListeners)
|
||||
if (const Array<KeyListener*>* const keyListeners = target->keyListeners)
|
||||
{
|
||||
for (int i = keyListeners->size(); --i >= 0;)
|
||||
{
|
||||
|
|
@ -238,7 +238,7 @@ bool ComponentPeer::handleKeyUpOrDown (const bool isKeyDown)
|
|||
if (keyWasUsed || deletionChecker == nullptr)
|
||||
break;
|
||||
|
||||
if (const Array <KeyListener*>* const keyListeners = target->keyListeners)
|
||||
if (const Array<KeyListener*>* const keyListeners = target->keyListeners)
|
||||
{
|
||||
for (int i = keyListeners->size(); --i >= 0;)
|
||||
{
|
||||
|
|
@ -276,7 +276,7 @@ TextInputTarget* ComponentPeer::findCurrentTextInputTarget()
|
|||
Component* const c = Component::getCurrentlyFocusedComponent();
|
||||
|
||||
if (c == &component || component.isParentOf (c))
|
||||
if (TextInputTarget* const ti = dynamic_cast <TextInputTarget*> (c))
|
||||
if (TextInputTarget* const ti = dynamic_cast<TextInputTarget*> (c))
|
||||
if (ti->isTextInputActive())
|
||||
return ti;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue