Changeset 2851


Ignore:
Timestamp:
Jun 2, 2017 3:29:05 PM (4 years ago)
Author:
toby
Message:

more for arrow keys; do not understand how this windows code works, but apparently it does

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2850 r2851  
    27002700            item = event.GetItem()
    27012701            wx.CallAfter(G2gd.SelectDataTreeItem,self,item,self.oldFocus)
    2702             #if self.oldFocus: # Why do this?
     2702            #if self.oldFocus: # now done via last parameter on SelectDataTreeItem
    27032703            #    wx.CallAfter(self.oldFocus.SetFocus)
    27042704       
     
    27732773                else:
    27742774                    wx.CallAfter(self.PatternTree.SelectItem,item)
    2775             else:   
     2775            elif sys.platform == "win32":   
     2776                self.PatternTree.GetPrevSibling(item)
     2777                self.PatternTree.SelectItem(item)
     2778            else:
    27762779                item = self.PatternTree.GetPrevSibling(item)
    27772780                if item.IsOk(): self.PatternTree.SelectItem(item)
     
    27872790                else:
    27882791                    wx.CallAfter(self.PatternTree.SelectItem,item)
     2792            elif sys.platform == "win32":   
     2793                self.PatternTree.GetNextSibling(item)
     2794                self.PatternTree.SelectItem(item)
    27892795            else:   
    27902796                item = self.PatternTree.GetNextSibling(item)
Note: See TracChangeset for help on using the changeset viewer.