Changeset 1808


Ignore:
Timestamp:
Apr 24, 2015 2:20:41 PM (7 years ago)
Author:
vondreele
Message:

fix to sift-arrow on 1st tree level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1807 r1808  
    22612261        parent = self.PatternTree.GetItemParent(item)
    22622262        if key == wx.WXK_UP:
    2263             if keyevt.GetModifiers() == wx.MOD_SHIFT:
     2263            if keyevt.GetModifiers() == wx.MOD_SHIFT and parent != self.root:
    22642264                if type(parent) is int: return # is this the toplevel in tree?
    22652265                prev = self.PatternTree.GetPrevSibling(parent)
     
    22732273                self.PatternTree.SelectItem(item)
    22742274        elif key == wx.WXK_DOWN:
    2275             if keyevt.GetModifiers() == wx.MOD_SHIFT:
    2276                 if type(parent) is int: return # is this the toplevel in tree?
     2275            if keyevt.GetModifiers() == wx.MOD_SHIFT and parent != self.root:
    22772276                next = self.PatternTree.GetNextSibling(parent)
    22782277                self.PatternTree.Collapse(parent)
Note: See TracChangeset for help on using the changeset viewer.