Changeset 3245

Show
Ignore:
Timestamp:
07/12/2007 04:29:36 PM (1 year ago)
Author:
paul
Message:

Fixed a subtle bug in copy/paste that assumed the objects involved would all
be fully daboized. This fixes copy/paste in dShell. Ticket #1039.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable/dabo/ui/uiwx/uiApp.py

    r3057 r3245  
    346346        # If neither of the above works, then copy text to the clipboard. 
    347347        if self.ActiveForm: 
    348             win = self.ActiveForm.ActiveControl 
     348            win = self.ActiveForm.FindFocus() 
    349349            handled = False 
    350350            if cut: 
     
    397397    def onEditPaste(self, evt): 
    398398        if self.ActiveForm: 
    399             win = self.ActiveForm.ActiveControl 
     399            win = self.ActiveForm.FindFocus() 
    400400            handled = False 
    401401            if hasattr(win, "paste"): 
  • trunk/dabo/ui/uiwx/uiApp.py

    r3233 r3245  
    357357        # If neither of the above works, then copy text to the clipboard. 
    358358        if self.ActiveForm: 
    359             win = self.ActiveForm.ActiveControl 
     359            win = self.ActiveForm.FindFocus() 
    360360            handled = False 
    361361            if cut: 
     
    408408    def onEditPaste(self, evt): 
    409409        if self.ActiveForm: 
    410             win = self.ActiveForm.ActiveControl 
     410            win = self.ActiveForm.FindFocus() 
    411411            handled = False 
    412412            if hasattr(win, "paste"):