commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/designer/src/forms/LayoutEditor LayoutEdit...


From: Jan Ischebeck
Subject: gnue/designer/src/forms/LayoutEditor LayoutEdit...
Date: Wed, 11 Jun 2003 16:26:50 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Branch:         
Changes by:     Jan Ischebeck <address@hidden>  03/06/11 16:26:50

Modified files:
        designer/src/forms/LayoutEditor: LayoutEditor.py 

Log message:
        fix meta_is_always_pressed bug and allow resizing with CTRL or SHIFT + 
Cursor too.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/forms/LayoutEditor/LayoutEditor.py.diff?tr1=1.87&tr2=1.88&r1=text&r2=text

Patches:
Index: gnue/designer/src/forms/LayoutEditor/LayoutEditor.py
diff -c gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.87 
gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.88
*** gnue/designer/src/forms/LayoutEditor/LayoutEditor.py:1.87   Wed Jun 11 
16:14:42 2003
--- gnue/designer/src/forms/LayoutEditor/LayoutEditor.py        Wed Jun 11 
16:26:50 2003
***************
*** 658,664 ****
    def keyTrap(self, event):
      if event.KeyCode() in (WXK_LEFT, WXK_RIGHT, WXK_UP, WXK_DOWN) and \
        len(self._currentSelection):
!       if event.AltDown(): # or event.MetaDown():
          resize = None
          if event.KeyCode() == WXK_LEFT:
            resize = (-1,0)
--- 658,665 ----
    def keyTrap(self, event):
      if event.KeyCode() in (WXK_LEFT, WXK_RIGHT, WXK_UP, WXK_DOWN) and \
        len(self._currentSelection):
!       if event.AltDown() or event.ControlDown() or event.ShiftDown():
!         # caution: event.MetaDown() is always true on some architectures
          resize = None
          if event.KeyCode() == WXK_LEFT:
            resize = (-1,0)
***************
*** 671,678 ****
          if resize:
            for widget in self._currentSelection:
              widget._widgetHandler.relativeResize(*resize)
!       elif not event.MetaDown() and not event.ControlDown() and\
!                not event.ShiftDown():
          pos = None
          if event.KeyCode() == WXK_LEFT:
            pos = (-1,0)
--- 672,678 ----
          if resize:
            for widget in self._currentSelection:
              widget._widgetHandler.relativeResize(*resize)
!       else:
          pos = None
          if event.KeyCode() == WXK_LEFT:
            pos = (-1,0)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]