Ignore:
Timestamp:
02/24/11 00:00:24 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
915059ec13d472d1df1a13f4e8e94b365cd50d4c
Message:
  • changed the order of shortcuts for delete widget on darwin platform (so cmd + backspace is shown in the menu)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngCanvas.pyw

    r7144 r7711  
    346346        self.renameActiveWidgetAction = rename = self.widgetPopup.addAction("&Rename", self.schema.canvasView.renameActiveWidget, Qt.Key_F2) 
    347347        self.removeActiveWidgetAction = delete = self.widgetPopup.addAction("Remove", self.schema.canvasView.removeActiveWidget, Qt.Key_Delete) 
    348         delete.setShortcuts([Qt.Key_Delete, Qt.CTRL + Qt.Key_Backspace, Qt.CTRL + Qt.Key_Delete]) 
     348        if sys.platform != "darwin": 
     349            delete.setShortcuts([Qt.Key_Delete, Qt.CTRL + Qt.Key_Backspace, Qt.CTRL + Qt.Key_Delete]) 
     350        else: 
     351            delete.setShortcuts([Qt.CTRL + Qt.Key_Backspace, Qt.Key_Delete, Qt.CTRL + Qt.Key_Delete]) 
    349352        self.widgetPopup.addSeparator() 
    350353        self.helpActiveWidgetAction = self.widgetPopup.addAction("Help", self.schema.canvasView.helpOnActiveWidget, Qt.Key_F1) 
Note: See TracChangeset for help on using the changeset viewer.