Project

General

Profile

ThinClient.diff

Vadim Gindin, 12/04/2015 03:13 PM

Download (1.34 KB)

View differences:

src/com/goldencode/p2j/ui/chui/ThinClient.java 2015-12-04 20:10:04 +0000
12764 12764
   {
12765 12765
      // get and check the focus - the widget in focus may be disabled
12766 12766
      Widget comp = UiUtils.getCurrentFocus();
12767
      if (comp != null && !comp.isEnabled())
12767
      // TODO: not sure if it is correct
12768
      if (comp != null && !comp.focusTraversable()/*!comp.isEnabled()*/)
12768 12769
      {
12769 12770
         comp = null;
12770 12771
      }
......
14925 14926
               // allowed
14926 14927
               if (inf != null &&
14927 14928
                   !(inf instanceof TopLevelWindow) &&
14928
                   !(inf.isEnabled() &&
14929
                   !(/* TODO check if it is correct instead of inf.isEnabled() &&*/
14930
                     inf.focusTraversable() &&
14929 14931
                     inf.isVisible() &&
14930 14932
                     (infFrame == null ||
14931 14933
                      infFrame.isVisible())))
......
15465 15467

  
15466 15468
      TriggerResult tr = null;
15467 15469
      Widget cur = UiUtils.getCurrentFocus();
15468
      if (cur != null && !cur.isEnabled())
15470
      // TODO uncomment: mouse disabled items are navigable even they are disabled 
15471
      if (cur != null && /*!cur.isEnabled() */ !cur.focusTraversable())
15469 15472
      {
15470 15473
         cur = null;
15471 15474
      }