You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/09/27 16:40:05 UTC

svn commit: r1001760 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java

Author: gbrown
Date: Mon Sep 27 14:40:05 2010
New Revision: 1001760

URL: http://svn.apache.org/viewvc?rev=1001760&view=rev
Log:
Fix focus issue.

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java?rev=1001760&r1=1001759&r2=1001760&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java Mon Sep 27 14:40:05 2010
@@ -2313,9 +2313,9 @@ public abstract class Component implemen
      * <tt>true</tt> if the component is capable of receiving the focus
      */
     public boolean isFocusable() {
-        boolean focusable = skin.isFocusable();
+        boolean focusable = skin.isFocusable() && isEnabled();
 
-        if (focusable && isEnabled()) {
+        if (focusable) {
             Window window = getWindow();
             focusable = (window != null
                 && window.isOpen()